scipy的使用过程bug调试

别说谁变了你拦得住时间么 提交于 2020-04-05 20:31:05
C:\SoftApplication\Anaconda3\python.exe E:/pycharmprojects/test03/test01.py
Traceback (most recent call last):
  File "E:/pycharmprojects/test03/test01.py", line 2, in <module>
    from scipy.integrate import quad,dblquad,nquad
  File "C:\SoftApplication\Anaconda3\lib\site-packages\scipy\integrate\__init__.py", line 95, in <module>
    from ._bvp import solve_bvp
  File "C:\SoftApplication\Anaconda3\lib\site-packages\scipy\integrate\_bvp.py", line 10, in <module>
    from scipy.sparse.linalg import splu
  File "C:\SoftApplication\Anaconda3\lib\site-packages\scipy\sparse\linalg\__init__.py", line 116, in <module>
    from .eigen import *
  File "C:\SoftApplication\Anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\__init__.py", line 11, in <module>
    from .arpack import *
  File "C:\SoftApplication\Anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\arpack\__init__.py", line 22, in <module>
    from .arpack import *
  File "C:\SoftApplication\Anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\arpack\arpack.py", line 45, in <module>
    from . import _arpack
ImportError: DLL load failed: 找不到指定的程序。

无法使用scipy包。

解决方法:在external library中找到对应的acpack,py文件

将下图中蓝色这行注释掉:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!