相关疑难解决方法(0)

pip install PIL -E TICKETS-1 - 无JPEG/PNG支持

我正在为我的Django项目使用Ubuntu和VitualEnv.

我使用Synaptic Package Manager安装了PIL库,它运行正常.但是当我创建一个VitrualEnv并尝试使用pip安装PIL它安装但我得到这个奇怪的行为:

--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version       1.1.7
platform      linux2 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
              [GCC 4.5.2]
--------------------------------------------------------------------
*** TKINTER support not available
*** JPEG support not available
*** ZLIB (PNG/ZIP) support not available
*** FREETYPE2 support not available
*** LITTLECMS support not available
--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.
Run Code Online (Sandbox Code Playgroud)

我希望我可以使用requirements.txt来获取所有依赖项,但可能是PIL必须以某种方式手动安装......但是如何?

编辑:谢谢John Keyes,你是对的,我跑:

sudo ln -s …
Run Code Online (Sandbox Code Playgroud)

python virtualenv python-imaging-library

27
推荐指数
3
解决办法
1万
查看次数