当前位置:   article > 正文

Python安装PIL报错:Could not find a version that satisfies the requirement PIL (from versions: )

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

起初安装命令是按照 pip install PIL来安装的

结果显示:

提示——Could not find a version that satisfies the requirement PIL (from versions: )No matching distribution found for PIL

错误原因:

现在已经用Pillow代替PIL,PIL较多用于2.7版本的Python中

解决方案:

pip install Pillow

备注:

1、升级pip,安装该第三方模板后,引入时也有原来的:import image变为:from PIL import Image

2、安装python时要勾选pip和Add python.exe to Path

3、第三方库查询: pypi.python.org
 

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

闽ICP备14008679号