ImportError:导入 _rolling_ball_cy 时 DLL 加载失败:

Avi*_*ash 3 python opencv python-3.x scikit-learn scikit-image

我是 Python 新手,正在开发一个小型 opencv 应用程序。我需要 scikit-image 中的 local_threshold 但出现以下错误:

回溯(最近一次调用最后):文件“D:/Projects/Python/Document_Scanner/main.py”,第6行,来自skimage.filters导入threshold_local文件“C:\ Users \ nash2 \ AppData \ Local \ Programs \ Python \Python38-32\lib\site-packages\skimage\filters_ init _.py”,第 4 行,来自 .edges import (sobel, sobel_h, sobel_v,文件“C:\Users\nash2\AppData\Local\Programs\ Python\Python38-32\lib\site-packages\skimage\filters\edges.py”,第 18 行,来自 ..restoration.uft 导入拉普拉斯文件“C:\Users\nash2\AppData\Local\Programs\Python\ Python38-32\lib\site-packages\skimage\restoration_ init _.py”,第 13 行,来自 .rolling_ball 导入rolling_ball、ball_kernel、ellipsoid_kernel 文件“C:\Users\nash2\AppData\Local\Programs\Python\Python38 -32\lib\site-packages\skimage\restoration\rolling_ball.py",第 3 行,来自 ._rolling_ball_cy import apply_kernel, apply_kernel_nan ImportError:导入 _rolling_ball_cy 时 DLL 加载失败:找不到指定的模块。

我尝试恢复到旧版本的 scikit-image ,但仍然出现错误。我当前的 scikit-image 版本是 0.18.0

小智 5

安装旧版本(0.18.0rc0版本)的scikit-image我解决了这个问题