美文网首页
【Python】Could not find a version

【Python】Could not find a version

作者: 失语失芯不失梦 | 来源:发表于2018-04-23 16:04 被阅读0次

    在使用 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文件。


    相关文章

      网友评论

          本文标题:【Python】Could not find a version

          本文链接:https://www.haomeiwen.com/subject/xydllftx.html