使用pandas时遇到ValueError: numpy.dtype has the wrong size, try recompiling

[问题]使用pandas时遇到ValueError: numpy.dtype has the wrong size, try recompiling

[原因] 这是因为 Python 包的版本问题,例如安装了较旧版本的 Numpy,但安装了较新版本的 Pandas。

[解决方法]

查看Numpy版本号 python -c "import numpy; print numpy.version.version

升级Numpy版本号   pip install numpy -U

 

安装pandas的时候看见需要的numpy版本要求,尽然没有理会……

 

原文:http://blog.csdn.net/chloezhao/article/details/53197681

posted @ 2017-06-06 17:42  hellowcf  阅读(1891)  评论(0编辑  收藏  举报