Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 987
jay Avatar asked Nov 03 '12 19:11

jay


People also ask

How do I manually install SciPy?

Type and run pip install scipy in the command prompt. This will use the Python Package index, and install the core SciPy packages on your computer. You can also install other core packages like Numpy and Matplotlib by using the pip install numpy and pip install matplotlib commands.

Is SciPy included in Anaconda?

The Anaconda distribution comes with packages that can be used on Windows, Linux, and MacOS. The individual edition includes popular package names like numpy , pandas , scipy , sklearn , tensorflow , pytorch , matplotlib , and more.


1 Answers

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:

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

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

The Fonnesbeck method has never failed for me.

like image 124
aquil.abdullah Avatar answered Sep 18 '22 01:09

aquil.abdullah