Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 16951

Wrong dependency installed with pip

$
0
0

I wonder if anyone could please help me with this issue:

I have two python libraries lime and specsy, where the first library is a dependency of the second.

At the time when I added lime to PyPi there was another library with the same name so I declared it as lime-stable.

I have now uploaded specsy to its PyPi but when I try to install it this happens:

a) It installs the third party "lime" library (not mine)

b) It installs an older version of specsy.

I have actually declared it as "lime-stable" in three different places:

a) The project.toml which I think is the expected place:

[project]name = "specsy"version = "0.2.2"readme = "README.rst"description = "Model fitting package for the chemical analysis of astronomical spectra"dependencies = ["arviz~=0.18","astropy~=6.0","corner~=2.2","h5netcdf~=1.3.0","jax~=0.4","jaxlib==0.4.26","lime-stable~=1.0","lmfit~=1.3","matplotlib~=3.8","numpy~=1.26","pandas~=2.2.2","pymc~=5.13","PyNeb~=1.1","pytensor~=2.20","scipy~=1.13","six~=1.16.0","toml~=0.10","tomli >= 2.0.0 ; python_version < '3.11'","xarray~=2024.3.0"]

b) The requirements.txt file

arviz~=0.18astropy~=6.0corner~=2.2h5netcdf~=1.3.0jax~=0.4jaxlib~=0.4lime-stable~=1.0lmfit~=1.3matplotlib~=3.8numpy~=1.26pandas~=2.2.2pymc~=5.13PyNeb~=1.1pytensor~=2.20scipy~=1.13six~=1.16.0toml~=0.10tomli >= 2.0.0 ; python_version < "3.11"xarray~=2024.3.0

c) and the setup.py file:

  packages=find_packages('src'),  package_dir={'': 'src'},  package_data={'': ['config.toml', 'inference/*', 'innate/*', 'models/*', 'operations/*', 'resources/*', 'workflow/*']},  include_package_data=True,  install_requires=["arviz", "astropy", "h5netcdf", "jax", "jaxlib", "lime-stable", "lmfit", "matplotlib", "numpy","pandas", "pymc", "PyNeb", "pytensor", "scipy", "toml", "xarray"],

But it still installs "lime" instead of "lime-stable" from pip.

I wonder if anyone coculd please point me towards the source of the conflict.


Viewing all articles
Browse latest Browse all 16951

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>