python pandas报错: ImportError: Unable to import required dependencies:numpy :Importing the numpy C-extensions failed.

昨天尝试 使用 python 来处理文件, 本想着今天 一早就能看到结果 没想到今天开机的时候发现 任务并没有完成 于是打开试了下发现 报错了....

报错如下:

ImportError: Unable to import required dependencies:
numpy :

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.

网上查了下 好像是版本numpy版本问题 于是手动更新

在 Anaconda Prompt 中 pip uninstall numpy ;pip install numpy

再次运行程序 就可以运行了!

 

完整报错如下:

ImportError: Unable to import required dependencies:
numpy:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

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.8 from "C:\Users\EDZ\anaconda3\python.exe"
* The NumPy version is: "1.18.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 while importing _multiarray_umath: 找不到指定的模块。

 

posted @ 2021-09-23 09:46  dontbealarmedimwithy  阅读(3571)  评论(0编辑  收藏  举报