Python imaging library 安装PIL:build\u ext成功,但自检失败
PIL构建可以找到组件。但是selftest.py失败了Python imaging library 安装PIL:build\u ext成功,但自检失败,python-imaging-library,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 availa
# 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
有什么问题吗?您使用的是什么版本的Python。我正在尝试做与您相同的事情,但是使用python2.4在64位上没有成功。我使用Centos,我已经测试了5和6两个32位,它们工作得很好。然而,在64位主机上,我得到了完全相同的输出。您找到了吗?或者我的信息是否为您提供了可能的解决方案??