我最近将Anaconda下载到我的计算机上,可以在学校的Python中工作。最近,我需要对集成函数使用scipy来解决ODE。但是,当我导入scipy.integrate时,出现以下错误:
我的示例代码只是无法编译的一行:
import scipy.integrate
然后我收到以下错误消息:
ImportError: DLL load failed: The specified procedure could not be found.
到目前为止我尝试过的修复: 1.卸载并重新安装Anaconda 2.在anaconda powershell中,运行“ conda update conda”,然后运行“ conda update anaconda” 3.重新启动计算机。
关于如何解决此问题的任何想法?
编辑:完整的错误消息如下:
runfile('C:/Users/Eric/Documents/College Work/CBE5790/test.py', wdir='C:/Users/Eric/Documents/College Work/CBE5790')
Traceback (most recent call last):
File "<ipython-input-8-61942190ad9a>", line 1, in <module>
runfile('C:/Users/Eric/Documents/College Work/CBE5790/test.py', wdir='C:/Users/Eric/Documents/College Work/CBE5790')
File "C:\Users\Eric\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)
File "C:\Users\Eric\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/Eric/Documents/College Work/CBE5790/test.py", line 9, in <module>
import scipy.integrate
File "C:\Users\Eric\Anaconda3\lib\site-packages\scipy\integrate\__init__.py", line 93, in <module>
from ._bvp import solve_bvp
File "C:\Users\Eric\Anaconda3\lib\site-packages\scipy\integrate\_bvp.py", line 10, in <module>
from scipy.sparse.linalg import splu
File "C:\Users\Eric\Anaconda3\lib\site-packages\scipy\sparse\linalg\__init__.py", line 116, in <module>
from .eigen import *
File "C:\Users\Eric\Anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\__init__.py", line 11, in <module>
from .arpack import *
File "C:\Users\Eric\Anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\arpack\__init__.py", line 22, in <module>
from .arpack import *
File "C:\Users\Eric\Anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\arpack\arpack.py", line 45, in <module>
from . import _arpack
ImportError: DLL load failed: The specified procedure could not be found.