python导入pandas出错_python-3.x – 导入pandas显示ImportError:无法导入名称哈希表

更新:我现在建议使用

Anaconda安装科学的python栈。

pandas捆绑,可以使用conda轻松更新:

conda update pandas

它还与cython,scipy(通过pip安装是棘手的),statsmodels捆绑在一起,并为您管理这些包之间的依赖/关系。

值得注意的是,您不需要admin / sudo访问权限就可以在机器上安装Anaconda。

如果您没有使用Anaconda,推荐的方法是通过pip(在Mac和Windows上):

pip install pandas

在Linux上,您还可以在任何存储库中安装python-pandas,但请注意,您可能正在安装旧版的大pandas,理想情况下,您应该使用最新的稳定版本。

Installing from the git repository requires a recent installation of Cython as the cythonized C sources are no longer checked into source control. Released source distributions will contain the built C files. I recommend installing the latest Cython via easy_install -U Cython

Note that you will not be able to import pandas if you open an interpreter in the source directory unless you build the C extensions in place:

06002

没有编译hashtables.pyx(和其他一些cython文件),pandas无法导入它们。这些是pandas需要的(这是您的错误信息)。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值