使用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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM