Homebrew and PIL on Snow Leopard

Installing the python imaging library has always been a PIA for me after something screws up in my Mac OS X setup and I do a total reinstallation. I am still sticking to Snow Leopard because I do not trust Lion’s stability especially for developer tools for the upcoming 6 months or so. 

So this weekend’s small task was to install Snow Leopard and everything all over. This included setting up Google App Engine’s environment too for doing further development on GrupGuru.com.

Anyway, the fastest and easiest way to install PIL is over Homebrew, which is an excellent package manager, especially if you think MacPorts is driving you crazy. And here in 3 steps, you get PIL installed nice and easily.

brew install pip
$
export ARCHFLAGS="-arch i386 -arch x86_64"
$ pip install pil

Tags: pil homebrew