2011-08-11 73 views
1

我在Windows 7 x64上安装了Python 2.7。我安装了virtualenv并在virtualenv中安装了Pinax项目。当我尝试syncdb时,我收到一个错误提示需要PIL。我试着为2.7安装PIL 1.1.7,但没有正确安装。当我运行syncdb时,出现以下错误。在Windows 7上安装PINAX和PIL 7

Error: One or more models did not validate: 
photologue.photo: "image": To use ImageFields, you need to install the Python Im 
aging Library. Get it at http://www.pythonware.com/products/pil/ . 
photologue.watermark: "image": To use ImageFields, you need to install the Pytho 
n Imaging Library. Get it at http://www.pythonware.com/products/pil/ . 
avatar.avatar: "avatar": To use ImageFields, you need to install the Python Imag 
ing Library. Get it at http://www.pythonware.com/products/pil/ . 
photos.image: "image": To use ImageFields, you need to install the Python Imagin 
g Library. Get it at http://www.pythonware.com/products/pil/ . 

据我所知,这是因为这是一个x32。所以我从http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil下载了非官方的x64版本并试图安装。 Windows安装程序指出它无法找到python,因此无法安装PIL。我检查了注册表,python在那里。

有什么想法,因为我迷路了?

+0

是你安装的python x64版本吗? – MatToufoutu

+0

你确定你已经安装了64位Python,而不是32位Python吗?当我尝试安装64位版本的PIL时,在安装了32位Python 2.7的64位Windows 7上,我得到了相同的错误。 – agf

+0

宾果。谢谢您的帮助。 – Greg

回答

0

自从我在Windows上工作已经有一段时间了,但我相信您可能需要安装64位版本的Python。我可能是错的,但我不认为32位Python将能够运行64位库。我认为你看到的错误信息是64位PIL正在寻找64位Python并且找不到它。

0

只要您运行32位Python,您就可以在Win7x64上安装32位PIL。