Skip to content

Instantly share code, notes, and snippets.

@goldsmith
Last active January 6, 2024 07:25
Show Gist options
  • Star 46 You must be signed in to star a gist
  • Fork 12 You must be signed in to fork a gist
  • Save goldsmith/7262122 to your computer and use it in GitHub Desktop.
Save goldsmith/7262122 to your computer and use it in GitHub Desktop.
How to install Numpy and Scipy on Mac OS X Mavericks (10.9) using Pip.
# set up flags for Numpy C extentions compiling
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"
pip install numpy
# success!
# now for scipy
easy_install cython
# make sure you have Homebrew
brew install gfortran
# if this is too slow or has an error
# install gfotran from the Mac OS X Lion installer for Intel 64-bit processors
# http://gcc.gnu.org/wiki/GFortranBinaries#MacOS
# finally
pip install -e git+https://github.com/scipy/scipy#egg=scipy-dev
# Let me know if this works for you! jhghank@gmail.com
@entryword
Copy link

Thanks a lot!
and thank you @fogathmann it works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment