运行报错:Importing the numpy C-extensions failed.

2023-12-20 13:12:57

报错:

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博客

文章来源:https://blog.csdn.net/qq_55888300/article/details/135101119
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。