调试时出现importing the numpy C-extensions failed.
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
* The Python version is: Python3.7 from "C:\Users\HiWin10\.conda\envs\tf2\python.exe"
* The NumPy version is: "1.19.5"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: DLL load failed: 找不到指定的模块。
conda uninstall numpy 后重conda install numpy新安装依旧出错。
解决办法:使用pip install numpy,会提示版本对应问题:
实际上出错的并不只是numpy,修改numpy后会six等的版本错误。
总结:不要用conda install,使用pip install后根据提示对应修改。