最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Problems with scipy versions in the same environment but different machines - Stack Overflow

programmeradmin1浏览0评论

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

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
Share Improve this question edited Feb 23 at 14:24 desertnaut 60.4k32 gold badges152 silver badges180 bronze badges asked Feb 10 at 10:50 Carlos ChaconCarlos Chacon 12 bronze badges 1
  • please consider posting a proper answer; comments are not the appropriate space for solutions or self-answers. – desertnaut Commented Feb 23 at 14:25
Add a comment  | 

1 Answer 1

Reset to default 0

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.

发布评论

评论列表(0)

  1. 暂无评论