Installing NumPy on MacOS X Snow Leopard

NumPy is a requirement to work with PyTables. This is the second step in the install process, after getting HDF5 set up.

These instructions are based on the ones found on the NumPy site, but I’m summarizing things for my own use later on.

First, you’ll need to install the Fortran compiler for OSX (gFortran). Fortunately there’s a Fortran universal binary installer.

Next, get the NumPy source. You can find it on Sourceforge.

Now, build with gFortran.

python setup.py build –fcompiler=gnu95 python setup.py install

Enjoy!

If you found this post helpful, please consider sharing to your network. I'm also available to help you be successful with your distributed systems! Please reach out if you're interested in working with me, and I'll be happy to schedule a free one-hour consultation.