Python + OSX + Install Modules

May 04, 2012

I ran into a library that needs a bunch of Python modules installed to be able to rebuild any modified code. Python is particularly confusing as to how to install new modules and even worse when it comes to installing these modules under OSX specifically.

Now, I’ve messed with Python before and I had to install the modules manually because of the obscurity of the module but now that I’m back in “real code” land, I’m able to type the following and install (at least some of) the modules I need:

$ sudo easy_install Pygments

Pygments is just the module name. This works using Python version:

Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin

So, if I can get Google to ever update these entries on it’s end, maybe this post might help someone down the road…


James Hagerman

Written by James Hagerman

© 2026