Three solutions, one of which is indicated in my comment, but the easiest way is to change your PYTHONPATH . At the command line:
export PYTHONPATH=/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/:$PYTHONPATH
To make the change permanent, put this line in your
~/.bashrc
file.
From my comment:
I'm not sure how dangerous this is, but just move the installation according to your others, you can try
mv /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/ /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy_old/ cp /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/ /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/
Finally, you can try using pip to install numpy. To find out where pip installed, type this in the terminal:
which pip
If you want it to be ( /Library/... ), then all you have to do is
pip install numpy
source share