python:ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from

遇到报错: 

ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C header

解决:

https://blog.csdn.net/qq_41185868/article/details/106419739

numpy版本过低导致,需要对numpy版本进行升级即可!

pip install --upgrade numpy

我的解决方法:

先卸载现有的numpy,然后再重新安装最新版本的numpy

pip uninstall numpy

pip install numpy

然后重启jupyter重新运行代码,解决!

猜你喜欢

转载自blog.csdn.net/weixin_39450145/article/details/113855575