简体   繁体   English

Python Opencv DLL 加载失败 - Windows 10

[英]Python Opencv DLL load failed - Windows 10

This is an error that I've seen in several different places but none of the listed solutions have worked for me.这是我在几个不同地方看到的错误,但列出的解决方案都没有对我有用。

I'm trying to use opencv but when I import the module I get the following error:我正在尝试使用 opencv,但是当我导入模块时,出现以下错误:

>>> import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.

I have tried installing opencv from a pre-downloaded package, my computer has the current windows media pack and I jave run the module the depends without it listing any dependecy errors, I'm not sure what else to try at this point.我曾尝试从预下载的软件包安装 opencv,我的计算机具有当前的 Windows 媒体包,并且我运行了依赖模块而没有列出任何依赖错误,我不确定此时还可以尝试什么。

Edit: I have also tried installing opencv-contrib-python to no avail.编辑:我也尝试安装 opencv-contrib-python 无济于事。

Let me know if you have any suggestions.如果您有任何建议,请告诉我。

我遇到了类似的问题,我使用以下方法解决了它:

pip install opencv-contrib-python

I updated from python 3.7.3 to python 3.7.6 and it fixed the problem.我从 python 3.7.3 更新到 python 3.7.6,它解决了这个问题。 Worth a shot if you have the same issue.如果你有同样的问题,值得一试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 OpenCV Python 与 CUDA 在 Windows 上:DLL 加载失败 - OpenCV Python with CUDA on Windows: DLL Load Failed 使用python在opencv中加载DLL失败 - DLL load failed in opencv with python 无法在python中使用opencv加载dll - failed to load dll with opencv in python python + opencv“ DLL加载失败” - python + opencv “dll load failed” Boost.Python + opencv Error, Windows 10 x64, "ImportError: DLL load failed: The specified module could not be found." - Boost.Python + opencv Error, Windows 10 x64, "ImportError: DLL load failed: The specified module could not be found." openCV DLL加载失败:%1 - openCV DLL load failed: %1 Python 3.5、OpenCV 3.2、Windows 7 64 位、Anaconda 3、“导入错误:DLL 加载失败” - Python 3.5, OpenCV 3.2, Windows 7 64-bits, Anaconda 3, “ImportError: DLL load failed” 尝试在 Windows 10 上打开任何 Python 库时,Visual Studio Code 中的“DLL 加载失败” - "DLL load failed" in Visual Studio Code when trying to open any Python library on Windows 10 导入_ssl错误,DLL加载失败,Python 37 Anaconda ZAEA23489CE3AA9B63ZECDA10 - import _ssl error,DLL load failed ,Python 37 Anaconda Windows 10 Windows 10,Python 3.6和64位上的Tensorflow的DLL加载失败 - DLL load failed for Tensorflow on Windows 10, Python 3.6 and 64-bit
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM