Skip to content

Instantly share code, notes, and snippets.

@six8
Created September 20, 2011 05:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save six8/1228463 to your computer and use it in GitHub Desktop.
Save six8/1228463 to your computer and use it in GitHub Desktop.
Install PIL in a virtualenv on Mac OSX Lion with minimal dependencies

Perquisites:

brew install jpeg
pip install --upgrade --no-install PIL

Edit setup.py:

vi $VIRTUAL_ENV/build/PIL/setup.py

Change:

JPEG_ROOT = '/usr/local/Cellar/jpeg/8c/'
FREETYPE_ROOT = libinclude('/usr/X11')

Build:

pip install --upgrade PIL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment