Last active
January 4, 2016 13:29
-
-
Save dbose/8627847 to your computer and use it in GitHub Desktop.
Installation of scipy and numpy on Snow Leopard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://www.thisisthegreenroom.com/2011/installing-python-numpy-scipy-matplotlib-and-ipython-on-lion/#homebrew | |
brew install python | |
brew install gfortran | |
# Error: Library not loaded: | |
sudo ln -s /opt/X11/lib/libpng14.14.dylib /opt/local/lib/libpng14.14.dylib | |
sudo ln -s /opt/X11/lib/libfreetype.6.dylib /opt/local/lib/libfreetype.6.dylib | |
git clone https://github.com/numpy/numpy.git numpy | |
cd numpy | |
python setup.py build | |
python setup.py install | |
easy_install cython | |
git clone https://github.com/scipy/scipy.git scipy | |
cd scipy | |
python setup.py build | |
python setup.py install | |
easy_install nose | |
python | |
>>> import numpy as np | |
>>> np.test('full') | |
>>> import scipy | |
>>> scipy.test() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment