模块Pandas的运行时错误

时间:2014-03-23 08:58:47

标签: python numpy import

在搞砸了一下之后,我在导入pandas时遇到了这个错误:RuntimeError: module compiled against API version 9 but this version of numpy is 6(详情如下)。从长远来看,这应该使用virtualenv来解决。从短期来看,你知道我该如何解决这个问题吗?

>>> import pandas RuntimeError: module compiled against API version 9 but this version of numpy is 6

1 个答案:

答案 0 :(得分:1)

什么版本的python?重建/重新安装numpy?

pip uninstall numpy; pip install numpy

https://stackoverflow.com/a/21647753/1821490