Reputation: 18219
I aim to install scipy and numpy on Python 2.7. My computer is a Mac version OSX 10.8.5. It is the first time I try to install a package on Python.
I went on this webpage: http://www.scipy.org/install.html
And I realize I'd better to download Macports first. Therefore I went there http://www.macports.org/install.php and clicked on "Montain Lion" in "Mac OS X Package (.pkg) Installer"
Then I entered:
sudo port install py27-numpy py27-scipy py27-matplotlib py27-ipython +notebook py27-pandas py27-sympy py27-nose
in the terminal. I had to wait for more than 20 minutes but it seemed that everything worked fine.
When I go on Python Idle and write
import scipy
I get
Traceback (most recent call last): File "", line 1, in import scipy File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/init.py", line 70, in from numpy import show_config as show_numpy_config ImportError: No module named numpy
Could you please help me with this issue?
Upvotes: 3
Views: 8625
Reputation: 41
Python is installed with Mac OS X so you could use easy_install
sudo easy_install numpy
MacPorts installs python (and as it seems the eggs) to another location but you are using the Mac OS X python and so python can't find them.
Upvotes: 4