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

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Gavin__Zhou/article/details/78348168

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

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

猜你喜欢

转载自blog.csdn.net/Gavin__Zhou/article/details/78348168