【问题标题】:Pandas won't import (Python3.5) (Raspberry Pi 3)Pandas 不会导入 (Python3.5) (Raspberry Pi 3)
【发布时间】:2018-11-23 13:02:46
【问题描述】:

我已经使用 pip3 安装了 pandas、numpy 和 matplotlib。导入numpy和matplotlib成功,但是导入pandas出现如下错误。

RuntimeError: module compiled against API version 0xc but this version of numpy is 0xa
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xa

如果我卸载 matplotlib 并只导入 pandas 和 numpy,它们会成功导入。

我已经在python2.7中安装了这些包,它们都可以导入。

我正在运行最新版本的 Raspbian。

【问题讨论】:

  • 你能pip3 show <module>你的模块和它们的版本吗?

标签: python python-3.x python-2.7 pandas matplotlib


【解决方案1】:

我最终使用

卸载了 matplotlib 和 pandas
sudo pip3 uninstall <module>

然后我使用以下方法安装了熊猫:

sudo pip3 install -U pandas

然后使用以下命令再次安装 matplotlib:

sudo pip3 install matplotlib

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-12-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-22
    • 2019-07-15
    • 1970-01-01
    • 1970-01-01
    • 2018-11-04
    相关资源
    最近更新 更多