PINAX& Windows 7上的PIL安装

时间:2011-08-11 00:27:52

标签: python python-imaging-library pinax

我在Windows 7 x64上安装了Python 2.7。我已经安装了virtualenv并在virtualenv中安装了Pinax项目。当我尝试syncdb时,我收到一个错误,说明需要PIL。我尝试安装PIL 1.1.7 for 2.7,但它没有正确安装。当我运行syncdb时,我收到以下错误。

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就在那里。

任何想法,因为我迷路了?

2 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分:0)

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