【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

点击即可下载


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

path是指下载的.whl文件存放的路径


关于wheel

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



©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容