2009-06-15 64 views
1

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在我的一個模型中。

+0

什麼是您的操作系統? – Pyetras 2009-06-15 11:50:26

回答

5

當然PIL是在PyPi!具體而言,它是right here

0

import Image

的Django嘗試導入直接PIL:

from PIL import Image 

您應該檢查你的站點包PIL目錄的存在

1

的easy_install是區分大小寫的。該包在PIL下。

1

的解決方法是使用easy_install PIL雞蛋目錄

相關問題