Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 562  / 2 Years ago, sun, january 2, 2022, 1:18:48

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?


More From » 11.04

 Answers
1

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:




37 JPEG_ROOT = "/usr/lib"
38 ZLIB_ROOT = "/usr/lib/zlib/lib"
39 TIFF_ROOT = None
40 FREETYPE_ROOT = "/usr/lib/i386-linux-gnu/"


I have manually installed zlib under /usr/lib/zlib to serve my needs.



The selftest.py of PIL will recognize the available libraries. Recompile PIL and everything is set!


[#43621] Monday, January 3, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rieency

Total Points: 299
Total Questions: 116
Total Answers: 111

Location: Wales
Member since Tue, Dec 14, 2021
2 Years ago
;