擅长:python、mysql、java
<p>django cms需要Python映像库PIL。似乎你指的是python imaging,它是满足该需求的Ubuntu包名。我的经验是在macosx上构建和安装PIL,这似乎也是您的用例。PIL需要编译和构建一些C文件,这是正确的,因为各种图像算法是用C实现的,而不是Python实现的。在</p>
<p>以前可以从PyPI(<a href="http://pypi.python.org/pypi/PIL/1.1.6" rel="nofollow">PIL 1.1.6</a>)安装PIL,但现在似乎不起作用了。现在您必须从<a href="http://effbot.org/downloads/#Imaging" rel="nofollow">here</a>或<a href="http://www.pythonware.com/products/pil/" rel="nofollow">here</a>下载并安装所需的源版本。之后,命令<code>python setup.py install</code>应该足以安装它(这将构建扩展,进而构建Python映像库本身)。在</p>