本文介绍了在Python 2.7上安装Pillow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试安装Pillow(作为滚轮文件)
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
我收到以下错误消息.
Pillow-3.4.2-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
推荐答案
您有一个wheel文件,该文件需要其他Python版本.
You have a wheel file which is expecting a different Python version.
cp36表示CPython 3.6,即Python 3.6.您正在运行Python 2.7.
The cp36, indicates CPython 3.6, i.e. Python 3.6. You are running Python 2.7.
要么更新Python版本,要么更合适地从PyPi获取正确版本的Wheel文件. https://pypi.python.org/pypi/Pillow/4.0.0
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 2.7上安装Pillow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!