OSX – Install PIL on OSX 10.7 Lion

If the jpeg encoder is not available when PIL is compiled, you should simply remove PIL, and reinstall it after making sure libjpeg successfully installs.

I use homebrew to install libjpeg.

brew install libjpeg

# linking failed for me
sudo brew link jpeg

# sudo pip uninstall PIL if you already have PIL installed.
sudo pip install PIL

2 thoughts on “OSX – Install PIL on OSX 10.7 Lion

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s