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