问题遇到的现象和发生背景
要运行一个别人写好的程序包,我也没有改任何东西,然后就出现这个报错
问题相关代码,请勿粘贴截图
运行结果及报错内容
Traceback (most recent call last):
File "E:\Python3.9\lib\site-packages\numpy\core_init_.py", line 22, in
from . import multiarray
File "E:\Python3.9\lib\site-packages\numpy\core\multiarray.py", line 12, in
from . import overrides
File "E:\Python3.9\lib\site-packages\numpy\core\overrides.py", line 7, in
from numpy.core._multiarray_umath import (
ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的程序。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "F:\biyelunwen\pydm3\fit.py", line 12, in
import numpy as np
File "E:\Python3.9\lib\site-packages\numpy_init.py", line 140, in
from . import core
File "E:\Python3.9\lib\site-packages\numpy\core_init.py", line 48, in
raise ImportError(msg)
ImportError:
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.9 from "E:\Python3.9\pythonw.exe"
- The NumPy version is: "1.19.3"
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: 找不到指定的程序。
我的解答思路和尝试过的方法
看网上说的版本不兼容,之前我numpy用的1.22.3,然后改成了1.19.3,还是一样的报错
我想要达到的结果
咋样才能让他成功运行啊