Python引入pandas报错ValueError: numpy.ufunc has the wrong size, try recompiling

Python引入pandas报错ValueError: numpy.ufunc has the wrong size, try recompiling

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

查看 Numpy版本:pip list

到https://pypi.org/project/pandas/0.13.1/#description找到匹配的pandas下载。

卸载不匹配的pandas包pip uninstall pandas后安装。

 重新引入OK!

 

 

 

posted @ 2021-03-24 16:16  bellin124  阅读(397)  评论(0编辑  收藏  举报