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
About these ads
By Yuji Posted in Life

One comment on “OSX – Install PIL on OSX 10.7 Lion

  1. Pingback: Installing PIL on OS X Lion | PHP Developer Resource

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 )

Connecting to %s