在CMD中使用pip并获得语法错误

时间:2017-12-02 05:41:19

标签: python-2.7 pip python-imaging-library python-module

之前我没有做过很多模块,我正在尝试安装PIL(python 2.7) - 使用pip - 这就显示了。

enter image description here

这是我的错误,我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

两件事。

首先,m3-pil在三年内没有更新,并且包含安全漏洞。 https://pypi.python.org/pypi/m3-PIL/1.1.7

相反,请使用枕头,PIL的维护叉。 https://pillow.readthedocs.io/

其次,很快就会发表评论,看起来你正在使用pip for Python 3.要在Windows上安装Python 2:

python2 -m pip install pillow