Windows环境下Python 安装库 is not a supported wheel on this platform解决办法【转】
Windows环境下Python 安装库 is not a supported wheel on this platform解决办法
在使用python进行pdf转换图片时,需要PythonMagick库,但下载了许多whl都无法解决
解决方案
可能的原因1:安装的不是对应python版本的库,下载的库名中cp35代表python3.5,其它同理。【本人问题所在】
windows下如果用的是pycharm和anaconda,在使用的虚拟环境下,terminal中,键入python查看使用的python版本信息
能的原因2:这个是我遇到的情况(下载的是对应版本的库,然后仍然提示不支持当前平台)
我下载到的tensorflow库文件名:tensorflow-1.7.0-cp36-cp36m-win_amd64.whl
使用pip安装(在命令行中): pip install tensorflow-1.7.0-cp36-cp36m-win_amd64.whl
报错: tensorflow-1.7.0-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform,通过csdn上面一个帖子成功解决问题。
方法:在cmd后中输入
python
import pip
print(pip.pep425tags.get_supported())
可以获取到pip支持的文件名还有版本,我这里如下:
[(‘cp36’, ‘cp36m’, ‘win32’), (‘cp36’, ‘none’, ‘win32’), (‘py3’, ‘none’, ‘win32’), (‘cp36’, ‘none’, ‘any’), (‘cp3’, ‘none’, ‘any’), (‘py36’, ‘none’, ‘any’), (‘py3’, ‘none’, ‘any’), (‘py35’, ‘none’, ‘any’), (‘py34’, ‘none’, ‘any’), (‘py33’, ‘none’, ‘any’), (‘py32’, ‘none’, ‘any’), (‘py31’, ‘none’, ‘any’), (‘py30’, ‘none’, ‘any’)]
通过这里可以发现上面下载的文件名格式是不支持的,把文件名修改为:tensorflow-1.7.0-cp36-cp36m-win32.whl再使用pip安装即可成功。
作者:小呉同学
链接:https://www.jianshu.com/p/dd8b4869d4fb
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
- windows下Python2与Python3共存的使用方法以及pip的使用方法以及pip安装报错:is not a supported wheel on this platform的处理方法
- python安装模块时显示*.whl is not a supported wheel on this platform.解决方法
- Python使用pip安装报错:is not a supported wheel on this platform的解决方法
- python3.4 .whl is not a supported wheel on this platform.解决办法
- 记录python连接mysql数据库:python安装MySQL_Python时出现is not a supported wheel on this platform.
- .whl is not a supported wheel on this platform的原因及其解决办法
- python中的lxml的安装+*.whl is not a supported wheel on this platform.
- 成功解决安装scikit image出现‘is not a supported wheel on this platform’问题
- [Python]Numpy安装及一些玄学问题(is not a supported wheel on this platform、Undefined variable from import)
- Python——pip安装报错:is not a supported wheel on this platform
- python - 手动安装 mysql-python模块时出现is not a supported wheel on this platform.
- 安装MySQL_Python时出现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
- 解决lxml安装时“lxml-4.1.0-cp27-cp27m-win32.whl is not a support 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 安装包 *.whl is not a supported wheel on this platform.可能情况