首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Windows 7上的PINAX和PIL安装

Windows 7上的PINAX和PIL安装
EN

Stack Overflow用户
提问于 2011-08-11 08:27:52
回答 2查看 823关注 0票数 1

我在Windows7 x64上安装了Python2.7。我已经安装了virtualenv,并在virtualenv中安装了Pinax和项目。当我尝试同步数据库时,我收到一个错误,说明需要PIL。我尝试安装PIL 1.1.7 for 2.7,但它没有正确安装。当我运行syncdb时,我得到了以下错误。

代码语言:javascript
复制
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 installer声明找不到python,因此无法安装PIL。我检查了注册表,发现python在那里。

我迷路了,有什么想法吗?

EN

回答 2

Stack Overflow用户

发布于 2011-08-20 14:55:59

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

票数 0
EN

Stack Overflow用户

发布于 2013-05-08 02:49:51

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7019528

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档