我已将setup.py指向/ lib,其中我的libz.so是。当我运行setup.py install
时,我得到ZLIB支持确认:
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform linux2 2.7.2 (default, Feb 8 2013, 11:05:21)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)]
--------------------------------------------------------------------
*** TKINTER support not available
*** JPEG support not available
--- ZLIB (PNG/ZIP) support available
*** FREETYPE2 support not available
*** LITTLECMS support not available
--------------------------------------------------------------------
但是,在安装之后,我仍然收到错误:
IOError: decoder zip not available
答案 0 :(得分:1)
我已经通过下载zlib源代码来修复它,构建它并将Image构建指向它。