python - 导入错误 : DLL load failed while importing _rolling_ball_cy:

标签 python python-3.x opencv scikit-learn scikit-image

我是 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/

相关文章:

python - 在 Django 单元测试中使用持久数据库

python - 数学运算符区别 *= 或 +=

python-3.x - 复制 vim 中的行以在 ter 命令打开的上述窗口中执行?

python-3.x - Pandas数据框,找到最大值并返回相邻列值,而不是整行

c++ - 将图像的区域复制到另一个图像中的另一个区域

python - 在从另一个 .py 文件调用的函数中使用 cv2.detectMultiScale() 时出错

python - OSX 上的 tensorflow : Failed to load the native TensorFlow runtime (No module named pywrap_tensorflow_internal)

python - 提取比 numpy 数组大小更大的切片

python - 在 Pandas 中,如何将一系列 float 或无整数转换为带整数的字符串

c++ - 如何使用opencv setOpenGlDrawCallback函数?