我已将 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