我已经从二进制文件中安装了scikit-image但是当我运行此命令时:
from skimage.measure import structural_similarity
我收到此错误:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from skimage.measure import structural_similarity as ssim
File "C:\Python27\lib\site-packages\skimage\measure\__init__.py", line 4, in <module>
from ._regionprops import regionprops, perimeter
File "C:\Python27\lib\site-packages\skimage\measure\_regionprops.py", line 8, in <module>
from . import _moments
File "C:\Python27\lib\site-packages\skimage\measure\_moments.py", line 3, in <module>
from . import _moments_cy
ImportError: DLL load failed: The specified module could not be found.
该目录中有一个名为_moments_cy.pyd的文件,不确定这是否是它所要求的。
答案 0 :(得分:0)
from skimage.metrics import structural_similarity as ssim
该模块现在移至指标而不是度量。