【问题标题】:Import errors after plugin updates for Python(x,y)Python(x,y) 插件更新后的导入错误
【发布时间】:2014-01-03 14:21:04
【问题描述】:

我在 Spyder ide 中使用 Python(x,y)(版本 2.7.3.1)。在我更新插件之前,一切都运行良好。我将 Pandas 更新到 0.12.0-7 版,将 matplotlib 更新到 1.3.1-4 版,将 numpy 更新到 1.6.2 版。我通过在 Python(x,y) 页面上下载插件并双击可执行文件来做到这一点。

现在我在尝试导入 Matplotlib 和 pandas 时遇到错误。

当我尝试导入 matplotlib 时,错误是:

ImportError: matplotlib requires dateutil

当我尝试导入 Pandas 时,我得到的错误是:

numpy.dtype has the wrong size, try recompiling.

其他 stackflow 问题询问 matplotlib 和 pandas 是如何安装的,但鉴于我使用了插件,我不确定如何回答这个问题。

ps:我正在运行 Windows Vista Home Premium

【问题讨论】:

标签: numpy matplotlib pandas pythonxy


【解决方案1】:

我已经解决了这个问题的一部分。事实证明,我实际上并没有为 numpy 安装最新的插件。一旦我这样做了,我得到了一个关于 datautil 的新错误。我使用这篇博文安装了它:http://blog.gmane.org/gmane.comp.python.xy.devel/month=20130601

现在我可以导入熊猫了。仍在使用 Matplotlib。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-04-05
    • 2016-09-02
    • 2019-09-03
    • 2018-05-07
    • 1970-01-01
    • 1970-01-01
    • 2012-03-20
    相关资源
    最近更新 更多