Python Imaging Library (PIL) Decoder jpeg not available — how to fix? I've got error which is generated by PIL when I trying to process jpg-images: Python Imaging Library (PIL) Decoder jpeg not available.

How to fix this problem?
PIL is missing libjpeg library.

To install it:


Go to http://www.ijg.org/files/jpegsrc.v8c.tar.gz
Unpack this package and cd to the unpacked folder cd ~/Downloads/jpeg-8c
Compile it:
./configure
make

Then install: sudo make install


But PIL still can't find library. Now you need to reinstall it:


Uninstall pil (if you instlled it with pip, just type sudo pip uninstall pil)
Download PIL, unpack it and move to source folder.
Now open setup.py in your code editor
Replace JPEG_ROOT = None with JPEG_ROOT = libinclude("/usr/local")
Enjoy! Now it works!