(PNG / ZIP) not installed

I also run into a problem: *** support not installed.when I use PIL .

---Support PIL CORE in order
***support TKINTER not set
***JPEG support is not installed
***Support for ZLIB (PNG / ZIP) is not installed
---Support FREETYPE2 ok
***support LITTLECMS not installed

Many blogs say that if we add the path to where it libz.sowill go to setup.py(or make a link to /usr/lib), the problems will be resolved. However, neither I add the path ( libz.soon my computer, found in /usr/lib64),

add_directory(library_dirs,"/usr/lib64")

and I don’t create a link, even copy it in /usr/lib, the problem still cannot be solved.

After copying to /usr/libboth libz.soand libjpeg.soare in /usr/lib,

[chenzhongpu@chen lib]$ ls libjpeg.so libz.so 
libjpeg.so  libz.so

I followed http://effbot.org/zone/pil-decoder-jpeg-not-available.htm , but it does not work.

One more thing when I introduce

python setup.py build_ext -i

outout shows:

***TKINTER support not available.
***JPEG support not available.
---ZLIB support (PNG / ZIP).

---FREETYPE2

***support. LITTLECMS support not available.

but as you type

python selftest.py

output shows:

ZLIB support (PNG / ZIP) not installed

Hope someone can help me.

+4
source share

All Articles