easy_install pil
導致錯誤:Python映像庫在PyPI上不可用,還是我錯過了某些東西?
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’)
任何想法?
-
UPDATE: 嗯,要求它找到鏈接蟒潔具網站似乎是工作:
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/ .
我使用的ImageField在我的一個模型中。
什麼是您的操作系統? – Pyetras 2009-06-15 11:50:26