【错误解决】pip安装错误

版权声明:本文为博主原创文章,转载请注明出处!!!(●'◡'●) https://blog.csdn.net/Small_Mouse0/article/details/79444936

错误例如:XX.whl is not a supported wheel on this platform

通过pip安装【.whl】出现上面的问题,【解决方法】如下:

>>> import pip
>>> print(pip.pep425tags.get_supported())
[('cp37', 'cp37m', 'win_amd64'), ('cp37', 'none', 'win_amd64'), ('py3', 'none', 'win_amd64'), ('cp37', 'none', 'any'), ('cp3', 'none', 'any'), ('py37', 'none', 'any'), ('py3', 'none', 'any'), ('py36', 'none', 'any'), ('py35', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]

修改下,名称即可,,

例如错误是

numpy-1.14.1-cp36-none-win_amd64.whl is not a supported wheel on this platform.

修改名称为:

numpy-1.14.1-cp37-none-win_amd64.whl。即可

猜你喜欢

转载自blog.csdn.net/Small_Mouse0/article/details/79444936