【Python】Could not find a version that satisfies the requirement PIL (from versions: ) No matching distribution found for PIL

在使用 pip 命令 ( pip install PIL ) 安装第三方库 PIL 的时候,报错:Could not find a version that satisfies the requirement PIL (from versions: ) No matching distribution found for PIL

查了一下,首先是因为 PIL 已经被 Pillow 所替代了,但是使用命令 pip install Pillow 仍旧不行,这个时候就需要我们手动去下载第三方库然后安装。

首先,去 这个地址 找到需要的库文件,比如 PIL

《【Python】Could not find a version that satisfies the requirement PIL (from versions: ) No matching distribution found for PIL》 点击即可下载

然后,使用命令 pip install path\文件名  安装即可

《【Python】Could not find a version that satisfies the requirement PIL (from versions: ) No matching distribution found for PIL》 path是指下载的.whl文件存放的路径

关于wheel

wheel是新的Python的disribution,用于替代Python传统的egg文件。目前有超过一半的库文件有对应的wheel文件。

    原文作者:失语失芯不失梦
    原文地址: https://www.jianshu.com/p/3de67550cea6
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞