Installing Numpy From
(I looked at many answers on here but similar questions were not answered or didn't address my question). I use numpy + scipy + matplotlib on Mac-OSX 10.8.5. I have numpy 1.6.1 on
Solution 1:
Three solutions, one is the one given in my comment, but an easier one might be to change your PYTHONPATH
. On the command line:
export PYTHONPATH=/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/:$PYTHONPATH
To make the change permanent, put that line in your
~/.bashrc
file.
From my comment: I'm not sure how dangerous it is, but to just move the installation to be with your others, you could 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 could try using pip
to install numpy. To see where pip
is installed, type this in terminal:
which pip
If it's where you want it to be (/Library/...
), then all you have to do is
pip install numpy
Post a Comment for "Installing Numpy From"