简体   繁体   English

在Python 2.7上安装枕头

[英]Installing Pillow on Python 2.7

When I try to install Pillow (as a wheel file) 当我尝试安装枕头(作为车轮文件)时

C:\Python27\Scripts>pip install C:\Users\karth\Desktop\Pillow-3.4.2-cp36-cp36m-win_amd64.whl

I get the following error. 我收到以下错误。

Pillow-3.4.2-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.

You have a wheel file which is expecting a different Python version. 您有一个wheel文件,期望使用其他Python版本。

The cp36, indicates CPython 3.6, ie Python 3.6. cp36表示CPython 3.6,即Python 3.6。 You are running Python 2.7. 您正在运行Python 2.7。

Either update your Python version, or more suitably, get a wheel file of the correct version from PyPi https://pypi.python.org/pypi/Pillow/4.0.0 更新您的Python版本,或更合适的方法是,从PyPi https://pypi.python.org/pypi/Pillow/4.0.0获取正确版本的Wheel文件。

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

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