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.
The discussion linked below, along with the comments of Uvar and MSeifert, pointed me in the direction to solve this problem.
Read more here: Source link