首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Pandas不会导入(Python3.5) (Raspberry Pi 3)

Pandas不会导入(Python3.5) (Raspberry Pi 3)
EN

Stack Overflow用户
提问于 2018-06-14 04:32:40
回答 1查看 321关注 0票数 0

我已经使用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。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-06-14 04:42:35

我最终使用以下命令卸载matplotlib和pandas

sudo pip3 uninstall <module>

然后我用以下命令安装了pandas:

sudo pip3 install -U pandas

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

sudo pip3 install matplotlib
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50845835

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档