pip安装报错'not a supported wheel on this platform'

来源:互联网 发布:硬件检测软件大全 编辑:程序博客网 时间:2024/05/02 02:03

这个错误很常见,解决方法是改名,首先要获得在你的机器的平台上的合法名称:

import pip
pip.pep425tags.get_supported()

结果可能如下:

上图的意思就是说对于python3.6(cp36)来说,合法的名字只能是这些,比如:
‘cp36_cp36m_macosx_10_12_x86_64.whl’
‘cp36_cp36m_macosx_10_12_intel.whl’
‘cp36_cp36m_macosx_10_12_fat64.whl’
等….

要是名字不对,修改下即可,然后pip install

阅读全文
0 0