pip 安装whl文件报 is not a supported wheel on this platform解决方案

出现问题的原因:
1. 安装的不是对应Python版本的库,下载的库名中cp27代表python2.7,其它同理。
2. 下载的是对应版本的库,提示不支持当前平台
解决方案:
1、下载对应Python版本的whl文件
2、查看pip支持的平台:

     import pip
     print(pip.pep425tags.get_supported())
     如出现 Traceback (most recent call last):
           File "<stdin>", line 1, in <module>
           AttributeError: module 'pip' has no attribute 'pep425tags'
     使用如下方式:
     import pip._internal
     print(pip._internal.pep425tags.get_supported())

这里写图片描述
问题解决

猜你喜欢

转载自blog.csdn.net/July_whj/article/details/81113026