pandas-0.19.2-cp34-cp34m-win32.whl is not a supported wheel on this platform.

来源:互联网 发布:head first java 翻译 编辑:程序博客网 时间:2024/06/05 15:40

  由于公司的电脑是XP系统,并且对网络有限制,因此安装了anaconda 2.4.0(更高的版本安装出错,win7建议安装最新版本)之后发现卡在启动界面(只能卸载不用了),因此只能选择单独安装python3.4并自己配置环境(这是背景),今天记录的是pandas安装出错的问题:
  下载了pandas-0.19.2-cp34-cp34m-win32.whl并放入Scripts文件夹中使用pip install 安装出现以下错误:  
pandas-0.19.2-cp34-cp34m-win32.whl is not a supported wheel on this platform.
Exception information:
Traceback (most recent call last):
File “C:\Python34\lib\site-packages\pip\basecommand.py”, line 122, in main
status = self.run(options, args)
File “C:\Python34\lib\site-packages\pip\commands\install.py”, line 257, in run
InstallRequirement.from_line(name, None))
File “C:\Python34\lib\site-packages\pip\req.py”, line 167, in from_line
raise UnsupportedWheel(“%s is not a supported wheel on this platform.” % wheel.filename)
pip.exceptions.UnsupportedWheel: pandas-0.19.2-cp34-cp34m-win32.whl is not a supported wheel on this platform.
解决方法:
在shell中输入import pip; print(pip.pep425tags.get_supported())可以获取到pip支持的文件名还有版本

这里写图片描述

发现不支持下载的带有cp34m格式的,将cp34m修改为none文件名变成:pandas-0.19.2-cp34-none-win32.whl
重新使用pip install 安装,发现安装成功
这里写图片描述

在python环境中导入测试一下:
这里写图片描述

发现也是成功的
备注:其他环境配置时也出现过问题,不过没有记录,以后出问题了再补上记录吧,方便自己出问题了查看

阅读全文
0 0
原创粉丝点击