我在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在那里。
有什么想法,因为我迷路了?
是你安装的python x64版本吗? – MatToufoutu
你确定你已经安装了64位Python,而不是32位Python吗?当我尝试安装64位版本的PIL时,在安装了32位Python 2.7的64位Windows 7上,我得到了相同的错误。 – agf
宾果。谢谢您的帮助。 – Greg