在使用 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文件。
网友评论