pip安装报错:is not a supported wheel on this platform
2017-05-01 14:55
603 查看
转自:https://www.geek-share.com/detail/2671189762.html
可能的原因1:安装的不是对应python版本的库,下载的库名中cp27代表python2.7,其它同理。
可能的原因2:这个是我遇到的情况(下载的是对应版本的库,然后仍然提示不支持当前平台)
我下载到的numpy库文件名:
- numpy-1.10.4+mkl-cp27-cp27m-win32.whl
使用pip安装(在命令行中):
- pip install numpy-1.10.4+mkl-cp27-cp27m-win32.whl
报错:*** is not a supported wheel on this platform,通过在stackoverflow上的一个帖子成功解决问题。
方法:在shell中输入import pip; print(pip.pep425tags.get_supported())可以获取到pip支持的文件名还有版本,我这里如下:
1 >>> import pip; print(pip.pep425tags.get_supported()) 2 [('cp35', 'cp35m', 'manylinux1_x86_64'), ('cp35', 'cp35m', 'linux_x86_64'), ('cp35', 'abi3', 'manylinux1_x86_64'), ('cp35', 'abi3', 'linux_x86_64'), ('cp35', 'none', 'manylinux1_x86_64'), ('cp35', 'none', 'linux_x86_64'), ('cp34', 'abi3', 'manylinux1_x86_64'), ('cp34', 'abi3', 'linux_x86_64'), ('cp33', 'abi3', 'manylinux1_x86_64'), ('cp33', 'abi3', 'linux_x86_64'), ('cp32', 'abi3', 'manylinux1_x86_64'), ('cp32', 'abi3', 'linux_x86_64'), ('py3', 'none', 'manylinux1_x86_64'), ('py3', 'none', 'linux_x86_64'), ('cp35', 'none', 'any'), ('cp3', 'none', 'any'), ('py35', 'none', 'any'), ('py3', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]View Code
通过这里可以发现上面下载的文件名格式是不支持的,修改为:numpy-1.10.4+mkl-cp27-none-win32.whl即可成功安装。
其它的库也同理可以成功安装,不过也请注意库的依赖。
(参考帖子网址:http://stackoverflow.com/questions/28107123/cannot-install-numpy-from-wheel-format?rq=1)
(python库下载地址(库很丰富,下载速度也很快):http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy)
相关文章推荐
- pip安装报错:is not a supported wheel on this platform
- pip安装报错:is not a supported wheel on this platform
- pip 安装错误 : is not a supported wheel on this platform
- pip安装报错:is not a supported wheel on this platform
- pip安装报错:is not a supported wheel on this platform
- pip安装报错:is not a supported wheel on this platform
- 使用pip安装tensorflow报错:tensorflow---- is not a supported wheel on this platform.
- pip安装报错:is not a supported wheel on this platform
- pip安装报错:is not a supported wheel on this platform
- windows下Python2与Python3共存的使用方法以及pip的使用方法以及pip安装报错:is not a supported wheel on this platform的处理方法
- pip安装显示 is not a supported wheel on this platform.
- pip安装报错:is not a supported wheel on this platform
- pip安装**.whl遇到问题**.whl is not a supported wheel on this platform.
- pip 安装报错,is not a supported wheel on this platform
- pip安装第三方库报错:** is not a supported wheel on this platform
- pip安装报错:is not a supported wheel on this platform
- pip安装报错:is not a supported wheel on this platform
- Python——pip安装报错:is not a supported wheel on this platform
- pip安装报错:is not a supported wheel on this platform
- Python使用pip安装报错:is not a supported wheel on this platform的解决方法