没有查看我的python支持的wheel导致.whl is not a supported wheel on this platform.
python3 使用pip安装(命令行中)失败或 “not a supported wheel” 解决方案!
原因1:
安装的不是对应python版本的库,下载的库名中cp36代表python3.6,其它同理。
原因2:(我遇到的情况—-下载的是对应版本的库,然后仍然提示不支持当前平台)
百度了一下,说法如下:
在shell中输入import pip; print(pip.pep425tags.get_supported())可以获取到pip支持的文件名还有wheel
然而:出现
AttributeError: module ‘pip’ has no attribute ‘pep425tags’
后来多次百度发现
因为我的pip的版本是10,应该使用下面的命令:
import pip._internal; print(pip._internal.pep425tags.get_supported())