无法导入名称哈希表

无法导入名称哈希表

本文介绍了python 2.7模块 pandas 未安装“无法导入名称哈希表";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在论坛/google上寻找答案,但找不到任何东西.我的问题是这个(从python控制台):

I tried looking for an answer to this around the forum/google, but I can't find anything. My issue is this (from python console):

>>> import pandas
cannot import name hashtable
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\pandas\__init__.py", line 6, in <module>
    from . import hashtable, tslib, lib
ImportError: cannot import name hashtable //also can't import name NaT somtimes

在尝试导入之前,我运行了Windows 1-click安装程序.我正在运行所有32位. pandas安装程序适用于python 2.7.

I ran the windows 1-click installer prior to attempting the import. I'm running everything 32-bit. The pandas installer is for python 2.7.

这是我已正确导入到Python中的模块的列表.

Here's a list of modules that I have correctly imported into Python.

  1. setuptools
  2. mox
  3. dateutil
  4. 六个
  5. numpy
  6. SQLAlchemy

我在Windows 7上.

I'm on windows 7.

我也安装了anaconda,但这实际上只是我尝试了其他所有操作之后的冰雹玛丽".我的最终目标是安装超财务模块.但是,这似乎需要熊猫,因此我被困住了.

I also have anaconda installed, but that was really just a "hail mary" after I tried everything else. My end goal is to install the ultra-finance module. However, it seems to require pandas, hence me being stuck.

我是python菜鸟,所以请不要以为我什么都不知道.谢谢.

I'm a python noob, so please don't assume I know anything. Thanks.

请告知我是否可以提供其他信息.

please let me know if I can provide any extra information.

推荐答案

安装熊猫是通过 pip :

pip install pandas

此哈希表错误是由于cython文件不是已构建.此错误消息从0.11.1开始会提供更多信息.

This hashtables error arises from the cython files not being built. This error message will be more informative from 0.11.1.

这篇关于python 2.7模块 pandas 未安装“无法导入名称哈希表";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-16 00:01