Python Modules

NOTE: this is all old and unmaintained.

Various Python modules of GIS interest (those not included elsewhere, like in a framework), and other random modules. These may be available elsewhere, but usually they are built for the python.org Python, and I prefer to stick with the system Python. Also, I link to my frameworks where possible. Downloads are for modules with binary components. Any others can be easily installed from source, no Xcode tools needed.

All are built for the system Python 2.7 in OS X Lion and above, 64 bit only, unless otherwise stated. I’m sorry, but I don’t support other installations of Python. See the download archive for old Python 2.6 packages.

For Python 3, most packages have Mac binaries available from pip.

NumPy

Documentation: numpy.scipy.org

Also included on the GDAL Framework disk image, though it may not be up to date.

SciPy

Requires: NumPy
Documentation: scipy.org

PIL

Requires: UnixImageIO, FreeType
Documentation: pythonware.com

Python Imaging Library

Matplotlib

Requires: NumPy
Documentation: matplotlib.sourceforge.net

psycopg2

Documentation: initd.org

PostgreSQL interface

RPy2

Requires: R 3.1
Documentation: rpy.sourceforge.net

R interface

PySAL

Spatial Analysis Library

Requires: NumPy, SciPy
Source & Documentation: pysal.org

This one has no binary components, so you can install without needing Xcode. In a Terminal:

sudo easy_install pysal