【问题标题】:unable to import pandas无法导入熊猫
【发布时间】:2018-08-03 15:07:47
【问题描述】:

我安装了一些更新熊猫版本的回测库。

从那以后我收到了ImportError: cannot import name 'hashtable'

我提到了现有的问题:Hashtable Error in Pandas

试过了

> pip install pandas

> conda update pandas

但似乎没有任何效果。欢迎提出任何建议。

编辑

我使用 conda remove --force pandas 从 conda 中删除了 pandas 并重新安装它。 现在我得到了新的错误

AttributeError: module 'pandas' has no attribute 'compat'

谢谢

【问题讨论】:

  • 安装了什么版本的pandas,正在使用什么版本的python/conda?
  • 你可能需要用pip3安装。
  • 你能添加整个回溯吗?

标签: python python-3.x pandas


【解决方案1】:

我从lib/site-packages 中删除了pandas 并使用重新安装了pandas pip install pandas。它奏效了。

【讨论】:

    猜你喜欢
    • 2018-12-23
    • 2019-03-08
    • 2020-06-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-10-07
    相关资源
    最近更新 更多