问题的主要原因,是numpy的版本不合适,卸载以后,重新安装一下,就可以了。 安装numpy : pip uninstall numpy 卸载numpy : pip install -U numpy 更多学习资讯,学习源码,请在耶宇星球领取