我是 Python 的新手,正在开发一个小型 opencv 应用程序。 我需要来自 scikit-image 的 local_threshold 但出现以下错误:
Traceback (most recent call last): File "D:/Projects/Python/Document_Scanner/main.py", line 6, in from skimage.filters import threshold_local File "C:\Users\nash2\AppData\Local\Programs\Python\Python38-32\lib\site-packages\skimage\filters_init_.py", line 4, in from .edges import (sobel, sobel_h, sobel_v, File "C:\Users\nash2\AppData\Local\Programs\Python\Python38-32\lib\site-packages\skimage\filters\edges.py", line 18, in from ..restoration.uft import laplacian File "C:\Users\nash2\AppData\Local\Programs\Python\Python38-32\lib\site-packages\skimage\restoration_init_.py", line 13, in from .rolling_ball import rolling_ball, ball_kernel, ellipsoid_kernel File "C:\Users\nash2\AppData\Local\Programs\Python\Python38-32\lib\site-packages\skimage\restoration\rolling_ball.py", line 3, in from ._rolling_ball_cy import apply_kernel, apply_kernel_nan ImportError: DLL load failed while importing _rolling_ball_cy: The specified module could not be found.
我尝试恢复到旧版本的 scikit-image ,但仍然出现错误。 我当前的 scikit-image 版本是 0.18.0
最佳答案
安装老版本(0.18.0rc0版本)的scikit-image我解决了这个问题
关于python - 导入错误 : DLL load failed while importing _rolling_ball_cy:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65687480/