昨天嘗試 使用 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: 找不到指定的模塊。