我对Anaconda安装进行了一些更改(我刚刚卸载了以前的版本,并安装了新版本)。现在尝试运行我的代码,只需导入以下代码即可:
from skimage.measure import compare_ssim
但是它显示此错误。我该如何解决?所有搜索均无济于事。当我在Anaconda Prompt上进行导入时,它不会抱怨。但是当我在Eclipse上运行它时,它显示了此错误。
Traceback (most recent call last):
File "C:\Users\user\eclipse-workspace\project\hybrid.py", line 18, in <module>
from skimage.measure import compare_ssim
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\skimage\__init__.py", line 176, in <module>
from .util.lookfor import lookfor
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\skimage\util\__init__.py", line 12, in <module>
from ._montage import montage, montage2d
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\skimage\util\_montage.py", line 2, in <module>
from .. import exposure
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\skimage\exposure\__init__.py", line 1, in <module>
from .exposure import histogram, equalize_hist, \
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\skimage\exposure\exposure.py", line 4, in <module>
from ..color import rgb2gray
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\skimage\color\__init__.py", line 1, in <module>
from .colorconv import (convert_colorspace,
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\skimage\color\colorconv.py", line 59, in <module>
from scipy import linalg
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\scipy\linalg\__init__.py", line 190, in <module>
from .misc import *
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\scipy\linalg\misc.py", line 5, in <module>
from .blas import get_blas_funcs
File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\scipy\linalg\blas.py", line 214, in <module>
from scipy.linalg import _fblas
ImportError: DLL load failed: The specified module could not be found.
答案 0 :(得分:1)
从here卸载和重新安装Numpy + mkl已修复,对于我来说是这样。
我的错误来自来自scipy导入信号。但是它给出了与您相同的错误: “从scipy.linalg import _fblas:ImportError:DLL加载失败:找不到指定的模块”
答案 1 :(得分:0)
我意识到在Anaconda Prompt
上运行此导入时,它不会抱怨。但是,当我在Eclipse
上运行它时,它显示此错误。
简单的解决方案是将其添加到有助于解决问题的PATH中:
C:\Users\user\AppData\Local\Continuum\anaconda3\Library\bin