【问题标题】:ImportError: DLL load failed while importing _rolling_ball_cy:ImportError:导入 _rolling_ball_cy 时 DLL 加载失败:
【发布时间】:2021-04-17 14:42:36
【问题描述】:

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

Traceback(最近一次调用最后一次):文件 “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 导入(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 行,在 from ._rolling_ball_cy import apply_kernel, apply_kernel_nan ImportError: DLL load failed while importing _rolling_ball_cy: 找不到指定的模块。

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

【问题讨论】:

  • 你是如何安装 Python 和 scikit-image 的?如果您遇到错误,您肯定仍然拥有 0.18.0 版本。
  • 我正在使用 pycharm 并尝试通过 pip 安装 scikit-image 以及解决 IDE 中未找到的依赖项。
  • Python 是在很久以前安装的,我以前从未遇到过这样的错误。
  • 您提到您“尝试还原”。如果您收到错误消息,则无法还原。当你使用 pip 时,你应该确保你在使用 PyCharm 的相同环境中(设置 > 设置 python 解释器)。

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


【解决方案1】:

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

【讨论】:

    【解决方案2】:

    您需要安装和分发微软的 vcredist_x64.exe 的内容。特别是你需要VCOMP140.DLL

    【讨论】:

      【解决方案3】:

      您需要安装scikit-image 0.18.0rc0 软件包。要安装此软件包,请运行以下命令。

      pip install scikit-image==0.18.0rc0

      注意 - 这也通过删除它并安装指定的版本来处理任何以前安装的版本。如果安装有任何问题,请尝试在管理员终端窗口中运行该命令。

      【讨论】:

        【解决方案4】:

        我可以通过在我的机器上重新安装 python 来让它工作。希望它可以帮助某人。

        【讨论】:

          猜你喜欢
          • 2020-03-31
          • 2021-07-25
          • 1970-01-01
          • 2012-02-02
          • 1970-01-01
          • 1970-01-01
          • 2022-10-12
          • 2021-05-21
          • 2021-11-12
          相关资源
          最近更新 更多