rmh*_*rmh 1 python django python-imaging-library
easy_install pil 导致错误:
Searching for pil
Reading http://pypi.python.org/simple/pil/
Reading http://www.pythonware.com/products/pil
Reading http://effbot.org/zone/pil-changes-115.htm
Reading http://effbot.org/downloads/#Imaging
No local packages or download links found for pil
error: Could not find suitable distribution for Requirement.parse(‘pil’)
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
-
更新: 嗯,要求它在Python Ware网站上查找链接似乎正在工作:
easy_install -f http://www.pythonware.com/products/pil/ Imaging
虽然有一堆警告.我会看到结果如何.
-
更新:我可以使用Python导入它import Image,但是当我告诉Django syncdb时,我仍然会收到以下错误:
Error: One or more models did not validate:
core.userprofile: “avatar”: To use ImageFields, you need to install the Python Imaging Library. Get it at http://www.pythonware.com/products/pil/ .
Run Code Online (Sandbox Code Playgroud)
我在我的一个模型中使用了ImageField.