在python 2.7中导入pandas时出错

时间:2015-01-23 15:11:38

标签: python pandas

我在python 2.7上导入pandas。请帮我弄清楚问题

  >>> import pandas
        cannot import name NaT
        Traceback (most recent call last):
          File "<stdin>", line 1, in <module>
          File "C:\Python27\lib\site-packages\pandas-0.15.2-py2.7-win-amd64.egg\pandas\_
        _init__.py", line 7, in <module>
            from . import hashtable, tslib, lib
          File "pandas\lib.pyx", line 50, in init pandas.lib (pandas\lib.c:78588)
        ImportError: cannot import name NaT

1 个答案:

答案 0 :(得分:-1)

安装Pandas的推荐方法是pip

pip install pandas

pandas安装中的问题导致此哈希表错误。