Skip to content

Instantly share code, notes, and snippets.

@dbose
Last active January 4, 2016 13:29
Show Gist options
  • Save dbose/8627847 to your computer and use it in GitHub Desktop.
Save dbose/8627847 to your computer and use it in GitHub Desktop.
Installation of scipy and numpy on Snow Leopard
# 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