报错:

ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOw To SoLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen formany reasons,often due to issues with your setup or how NumPy wasinstalled.
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.6 from "D: \software\package\anaconda3\envs\test\python.exe"* 
    * The NumPy version is: "1.19.35"
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==1.19.5

安装遇到问题请参考我的另一篇文章:

numpy安装ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: ‘C:\\Users\\MyPC\\.c-CSDN博客

Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐