Cannot install scipy on Mac OS X

I have numpy and matplot installed and working correctly with python 2.7, but when I use pip to install scipy, I get this error.

numpy.distutils.npy_pkg_config.PkgNotFound: Could not find file(s) ['/usr/local/lib/python2.7/site-packages/numpy/core/lib/npy-pkg-config/npymath.ini'] ---------------------------------------- Command python setup.py egg_info failed with error code 1 in /var/folders/61/dpn0d5p51z19g5vypnmh3vfh0000gn/T/pip-build/scipy 
+6
source share
3 answers

There is no end to the trouble you may encounter when trying to install numpy, scipy and matplotlib on Mac OS X. If you want to stay on the brink of bleeding, I would suggest downloading the git repositories and building each one.

If you do not need to be on the verge of bleeding, I would suggest, following the instructions on the SciPy website:

http://www.scipy.org/Installing_SciPy/Mac_OS_X

Finally, there is a wonderful job that Chris Fonnesbek: At https://github.com/fonnesbeck/ScipySuperpack

The Fonnesbeck method has never failed for me.

+9
source

I also could not install scipy using pip. However, the option that worked for me was to use the .dmg package provided by scipy.org .

Important: you will need to upgrade to the latest python on your Mac OS. That is, you can still use Python 2.7, however, you must upgrade to the latest build, which you can download at python.org.

0
source

I could suggest you use some package manager for Mas OS X (e.g. macports). Using such a system can avoid you from things like manually resolving dependencies, etc.

-1
source

All Articles