jay
jay

Reputation: 477

can't install scipy on mac OS X

I have numpy and matplot installed and working properly 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

Upvotes: 6

Views: 8088

Answers (3)

aquil.abdullah
aquil.abdullah

Reputation: 3157

There is no end to the amount of grief that you can run into when trying to install numpy, scipy, and matplotlib on Mac OS X. If you want to stay on the bleeding edge I would suggest downloading the git repositories and building each one.

If you don't need to be on the bleeding edge I would suggest, following the instructions on the SciPy web site:

https://scipy.org/install/#macos

Finally, there is the great work that Chris Fonnesbeck: At https://github.com/fonnesbeck/ScipySuperpack

The Fonnesbeck method has never failed for me.

Upvotes: 9

Alceu Costa
Alceu Costa

Reputation: 9899

I also was not able to install scipy using pip. However an option that has worked for me was using the .dmg package provided by scipy.org.

Important: you will have to update to the latest version of python in your Mac OS. That is, you can still use the Python 2.7, however it is necessary to update to the latest build which you can download at python.org.

Upvotes: 0

k21226
k21226

Reputation: 1

I could suggest you to use some package manager for Mas OS X (for example macports). Using a kind of such system could avoid you from such things like manual resolving of dependencies, and so on.

Upvotes: -1

Related Questions