Skip to content Skip to sidebar Skip to footer

Conda Python Isn't Using The Numpy Version I Try Install If I Also Specify That It Should Use Python 2

I am trying to use condas to install an environment that uses python 2.7 and numpy version 1.10 I try to create such an environment conda create -n test2 python=2.7 numpy=1.10 It

Solution 1:

Ok. Got it! When I run sys.path it looks in ".local/lib/python2.7/site-packages" before it looks in "anaconda3/envs/test2/lib/python2.7/site-packages"

I don't think I was ever using the python version in .local, and so I just moved the python2.7 directory out of ~/.local/lib. This seemed to remedy the problem. Now when I import numpy, the version is as expected.

Reference: The discussion linked below, along with the comments of Uvar and MSeifert, pointed me in the direction to solve this problem.

https://github.com/conda/conda/issues/448

Post a Comment for "Conda Python Isn't Using The Numpy Version I Try Install If I Also Specify That It Should Use Python 2"