I am running Ubuntu 11.04. Along with python 2.7 I have also 2.6 and 2.5. I am using 2.5 version to work and deploy my applications on App Engine. I have installed PIL (Python Image library) but despite I have all the dependencies covered it informs me that it cannot support jpeg and the rest of formats. How can I make the libjpeg-dev available to my custom python installation?
The PIL setup.py file if you are trying to install with easy_install the ./configure script is not available. If you open the setup.py in the first lines somewhere are the paths for Jpeg support zlib support etc. I set their values according to my paths of the installed libraries. So the setup.py looks like this before executing it:
I have manually installed zlib under
The selftest.py of PIL will recognize the available libraries. Recompile PIL and everything is set!
I found it simpler/nicer to add symlinks to the non-standard Ubuntu library locations:
Reinstalling PIL after fixing these worked fine for me.
-- also simpler for virtualenv installations where setup.py isn't readily editable