Python:Expected 88 from C header, got 80 from PyObjec

最近使用 python import pyedflib 时遇到以下错误:

ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

经过上网查找资料发现时numpy的版本问题,在最新版本的numpy中已经解决了这个问题,所以最终解决方案就是将原有numpy卸载,更新至最新版本:

pip unistall numpy
pip install numpy

如果依旧无效,可以关闭编辑器再重启。

posted @ 2021-09-22 10:35  史迪仔_lmj  Views(924)  Comments(0Edit  收藏  举报