I am having problems using the same conda environment across different machines.
When I do conda list of the environment I get that the correct version is installed.
readline 8.2 h5eee18b_0
referencing 0.34.0 pypi_0 pypi
requests 2.32.3 py39h06a4308_1
retrying 1.3.4 pypi_0 pypi
rpds-py 0.18.0 pypi_0 pypi
scikit-learn 1.4.1.post1 pypi_0 pypi
scipy 1.12.0 pypi_0 pypi
setuptools 75.3.0 pypi_0 pypi
six 1.16.0 pyhd3eb1b0_1
sqlite 3.45.3 h5eee18b_0
stack-data 0.6.3 pypi_0 pypi
sympy 1.13.2 py39h06a4308_0
tabulate
When I check the version in one machine with the environment loaded it shows the correct version. When i ran the same command (with the correct environment loaded) in another machine it shows
import scipy
print(scipy.__version__)
1.13.1
Why is this happening ?
The python version is Python 3.9.16 And the problem arises from jax calling scipy, which is in the version
jax 0.2.19 pypi_0 pypi
jaxlib 0.1.70+cuda111 pypi_0 pypi
Okey, problem solved! Python was looking at the local installation of Scipy before looking to the environment installation, raising a dependencies problems.
To solve it, you can uninstall Scipy from the local machine (pip uninstall
didn't work for me, so I manually remove it from ~/.local/lib/python3.9/site-packages/
), or avoid python looking at the local installation with (e.g., in bash) export PYTHONNOUSERSITE=1
.