Python——第三方模块PIL安装失败

来源:互联网 发布:word朗读软件 编辑:程序博客网 时间:2024/06/02 07:30

前提:按廖老师教程安装PIL(Python Image Library):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时要勾选pipAdd python.exe to Path

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

0 0
原创粉丝点击