当前位置:   article > 正文

Could not find a version that satisfies the requirement PIL (from versions: ) No matching distributi

could not find a version that satisfies the requirement pil (from versions:

1、软件版本

首先我先安装了

python 2.7

pip是  8.1.2

2、当我要安装PIL时,我在cmd下面输入:pip install PIL

错误提示是:

Could not find a version that satisfies the requirement PIL (from versions: )

No matching distribution found for PIL

如下图所示:

3、错误原因后来找了很多方法,发现我的电脑是64位的,而官网只提供32位的,就是自己去官网下载的其他PIL,

也是32位的。

4、解决方法:找一个非官方的64位大家通用的PIL安装

(1)打开网址 http://www.lfd.uci.edu/~gohlke/pythonlibs/

(2)搜索PIL(ctrl+F),找到下面的图片所示,如果你的python是2.7版本就下载cp27的,3.5就下载cp35

(3)还要先安装wheel。选择相应版本下载后,打开cmd(win+r),你要先安装pip,具体pip安装百度一下怎么安装,

输入pip install wheel  后如图所示

(4)wheel安装好后,找到我们下载好的Pillow‑5.3.0‑cp27‑cp27m‑win_amd64.whl(这是我的版本)

由于我把它放在桌面,所以我打开cmd后,找到存放该文件的桌面,然后pip 安装就成功了

5、成功后,就可以使用了

6、安装的第三方模块位置:pycharm->File->Settings->Project Interpreter

7、卸载模块

pip uninstall xxx #卸载

例如卸载第三方模块redis:

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/黑客灵魂/article/detail/747250
推荐阅读
相关标签
  

闽ICP备14008679号