[英]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.