Skip to content

Instantly share code, notes, and snippets.

@kljensen
Created October 13, 2010 00:08
Show Gist options
  • Save kljensen/623156 to your computer and use it in GitHub Desktop.
Save kljensen/623156 to your computer and use it in GitHub Desktop.
# Make a new virtual env
# named ninjakitten
mkvirtualenv ninjakitten
cdvirtualenv
# Install readline binary
easy_install -a readline
# Install ipython
pip install -E . ipython
# Install a Fortan compiler
brew install gfortran
# Supposedly Numpy and SciPy need GCC 4.0
# but I did not find this to be the case.
# If you do, try the following lines or
# some variant.
#ln -s /usr/bin/g++-4.0 g++
#ln -s /usr/bin/g++-4.0 c++
#export PATH="`pwd`:$PATH"
# Install Numpy
pip install -E . numpy
# Now, edit the following file
# lib/python2.6/site-packages/numpy/distutils/fcompiler/gnu.py
# Find the line that has the architectures
# and remove ppc64. The line looks like this
# for arch in ["ppc", "i686", "x86_64", "ppc64"]
# and should be
# for arch in ["ppc", "i686", "x86_64"]
# Install SciPy
pip install -E . scipy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment