简体   繁体   English

在Python上安装枕头

[英]Installing Pillow on Python

I am trying to instal Pillow-2.7.0-cp27-none-win32.whl on my Python 2.7.2 : 我正在尝试在Python 2.7.2上安装Pillow-2.7.0-cp27-none-win32.whl

So I open a comand prompt and type: 所以我打开一个命令提示符并输入:

pip install Pillow-2.7.0-cp27-none-win32.whl

But I get the following message: 但是我收到以下消息:

Pillow-2.7.0-cp27-none-win32.whl is not a supported wheel on this plataform. 此平台上不支持Pillow-2.7.0-cp27-none-win32.whl。

Edited: I am on a windows 7 professional 64bit service pack one 编辑:我在Windows 7专业64位Service Pack 1上

So what now? 所以现在怎么办?

  1. Go to Pillow page in pypi.python.org: https://pypi.python.org/pypi/Pillow/ 转到pypi.python.org中的Pillow页面: https ://pypi.python.org/pypi/Pillow/

  2. Pick a distribution for your operating system. 为您的操作系统选择一个发行版。 64-bit Windows is suffixed win_amd64.whl if you need exact package, but generic 如果需要确切的软件包,则后缀为64位Windows win_amd64.whl ,但是通用

    pip install Pillow should be enough pip install枕头应该足够了

Please refer to Pillow installation guide . 请参阅枕头安装指南

I am almost certain you are trying to install 32-bit Pillow with a 64-bit Python. 我几乎可以肯定您正在尝试使用64位Python安装32位枕头。 This is unrelated to windows being 64-bit. 这与Windows是64位无关。

Try this if you really need 2.7 instead of the latest pillow: 如果您真的需要2.7而不是最新的枕头,请尝试以下方法:

pip install "https://pypi.python.org/packages/cp27/P/Pillow/Pillow-2.7.0-cp27-none-win_amd64.whl#md5=f39617259e9e3d2ef5d885576fc0acda"

Unless you have a good reason though, do as others are saying and just follow the installation guide or do 除非您有充分的理由,否则请按照他人的说法进行操作,然后按照安装指南进行操作或执行

pip install pillow

您需要使用64位滚轮安装64位版本的Pillow。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM