-
-
Save xlfe/7786057 to your computer and use it in GitHub Desktop.
How to install numpy, scipy and scikit-learn on OS X 10.9 Mavericks
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
# Pre-requsites: | |
# X-code 5.0.1 with command line tools | |
# Homebrew, homebrew python, homebrew pip | |
export CFLAGS="-arch i386 -arch x86_64" | |
export FFLAGS="-m32 -m64" | |
export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch x86_64" | |
export CC=gcc-4.2 | |
export CXX="g++ -arch i386 -arch x86_64" | |
brew install gfortran | |
brew install apple-gcc42 | |
pip install cython | |
#use existing brews | |
brew tap samueljohn/python | |
brew tap homebrew/science | |
pip install nose | |
#installs numpy as a dependency | |
brew install scipy | |
pip install scikit-learn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment