首页 > 其他 > 详细

pip安装numpy等库报错:is not a supported wheel on this platform

时间:2018-01-17 15:16:09      阅读:226      评论:0      收藏:0      [点我收藏+]

可能的原因1:安装的不是对应python版本的库,下载的库名中cp27代表python2.7,其它同理。

可能的原因2:这个是我遇到的情况(下载的是对应版本的库,然后仍然提示不支持当前平台)

  我下载到的numpy库文件名:

  使用pip安装(在命令行中):

  报错:***  is not a supported wheel on this platform,通过在stackoverflow上的一个帖子成功解决问题。

  方法:在shell中输入import pip; print(pip.pep425tags.get_supported())可以获取到pip支持的文件名还有版本,我这里如下:

技术分享图片

>>import pip; print(pip.pep425tags.get_supported())
[(‘cp27‘, ‘none‘, ‘win32‘), (‘py2‘, ‘none‘, ‘win32‘), (‘cp27‘, ‘none‘, ‘any‘), (‘cp2‘, ‘none‘, ‘any‘), (‘cp26‘, ‘none‘, ‘any‘), (‘cp25‘, ‘none‘, ‘any‘), (‘cp24‘, ‘none‘, ‘any‘), (‘cp23‘, ‘none‘, ‘any‘), (‘cp22‘, ‘none‘, ‘any‘), (‘cp21‘, ‘none‘, ‘any‘), (‘cp20‘, ‘none‘, ‘any‘), (‘py27‘, ‘none‘, ‘any‘), (‘py2‘, ‘none‘, ‘any‘), (‘py26‘, ‘none‘, ‘any‘), (‘py25‘, ‘none‘, ‘any‘), (‘py24‘, ‘none‘, ‘any‘), (‘py23‘, ‘none‘, ‘any‘), (‘py22‘, ‘none‘, ‘any‘), (‘py21‘, ‘none‘, ‘any‘), (‘py20‘, ‘none‘, ‘any‘)]

技术分享图片

  通过这里可以发现上面下载的文件名格式是不支持的,修改为:numpy-1.10.4+mkl-cp27-none-win32.whl即可成功安装。

  其它的库也同理可以成功安装,不过也请注意库的依赖。

 

 

文章出处:http://stackoverflow.com/questions/28107123/cannot-install-numpy-from-wheel-format?rq=1

pip安装numpy等库报错:is not a supported wheel on this platform

原文:https://www.cnblogs.com/rabbit-testing/p/8302706.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!