我正在使用 Ubuntu 12.04,我在 PIL-hell 中。我已经尝试了所有可以在网上找到的安装 PIL 的建议,但我没有运气。我知道一个事实,我有所有的依赖。我已经尝试了所有的符号链接方法。我修改了 setup.py 文件以确保它找到正确的目录。我也尝试过从源代码构建并通过 pip 安装。没有任何效果。这是我安装时得到的:
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform linux2 2.7.3 (default, Nov 4 2012, 15:42:19)
[GCC 4.4.3]
--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
*** LITTLECMS support not available
--------------------------------------------------------------------
这是 selftest.py 显示的内容:
--------------------------------------------------------------------
PIL 1.1.7 TEST SUMMARY
--------------------------------------------------------------------
Python modules loaded from ./PIL
Binary modules loaded from ./PIL
--------------------------------------------------------------------
--- 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
--------------------------------------------------------------------
我不知道还能尝试什么。我只是想玩一些愚蠢的PNG文件......