On my system, I have several modules installed multiple times. To give an example, numpy 1.6.1
is installed in the standard path at /usr/lib/python2.7/dis
I had this problem on a Mac I was using without administrator access. My solution was the following:
Find the directory of the numpy version you want to use. For me this was /Library/Python/2.7/site-packages
Create a file ~/.startup.py
and point to it with PYTHONSTARTUP=~/.startup.py
in your .bashrc file
In .startup.py
:
import sys
sys.path.insert(0,'/Library/Python/2.7/site-packages/')
<--- imports this BEFORE the standard parts
import numpy
print("Importing numpy version"+numpy.__version__)
<---- To remind that we have changed the numpy version
This seems to work fine for me. I hope it helps.