安装PIL:build_ext成功,但selftest失败

时间:2013-06-29 11:38:34

标签: python-imaging-library

PIL构建可以找到组件。但是selftest.py失败了。

# python setup.py clean
# python setup.py build_ext -i

如下所示。

*** TKINTER support not available (Tcl/Tk 8.5 libraries needed)
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
*** FREETYPE2 support not available
*** LITTLECMS support not available

但是自我测试失败,如下所示。     #python selftest.py

--- PIL CORE support ok
*** TKINTER support not installed
*** JPEG support not installed
*** ZLIB (PNG/ZIP) support not installed
*** FREETYPE2 support not installed
*** LITTLECMS support not installed
--------------------------------------------------------------------
Running selftest:
*****************************************************************
Failure in example:
try:
 _info(Image.open(os.path.join(ROOT, "Images/lena.jpg")))
except IOError, v:
 print v
from line #24 of selftest.testimage
Expected: ('JPEG', 'RGB', (128, 128))
Got: decoder jpeg not available
1 items had failures:
   1 of  57 in selftest.testimage
***Test Failed*** 1 failures.
*** 1 tests of 57 failed.

我创建了如下所示的链接:

/usr/lib/libjpeg.so -> /usr/lib64/libjpeg.so
/usr/lib/libz.so -> /usr/lib64/libz.so
/lib/libz.so.1 -> /lib64/libz.so.1

它出了什么问题?

0 个答案:

没有答案