完整报错信息:
importerror: Something is wrong with the numpy installation. While importing we detected an older version of numpy in [‘D:\Anaconda3\envs\tensorflow\lib\site-packages\numpy’]. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.
报错原因:
numpy版本冲突
解决方法:
如报错信息所说
先卸载numpy: pip uninstall numpy
再卸载numpy,直到卸载到提示信息显示,此时完全已经没有numpy了为止,提示了Skipping numpy as it is not installed.
重新安装numpy:pip3 install numpy==1.17.3
此时应该可用;
此时若numpy不可用,查看.libs文件夹,删除掉其中的另一个dll文件,应该可用
参考:numpy版本问题