您的位置:首页 > 其它

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

2017-12-05 09:28 495 查看
  由于公司的电脑是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环境中导入测试一下:



发现也是成功的

备注:其他环境配置时也出现过问题,不过没有记录,以后出问题了再补上记录吧,方便自己出问题了查看
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐