Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Opencv DLL加载失败-Windows 10_Python_Windows_Opencv_Windows 10 - Fatal编程技术网

Python Opencv DLL加载失败-Windows 10

Python Opencv DLL加载失败-Windows 10,python,windows,opencv,windows-10,Python,Windows,Opencv,Windows 10,这是我在几个不同的地方看到的一个错误,但列出的解决方案都不适合我 我试图使用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. 导入cv2 回溯(

这是我在几个不同的地方看到的一个错误,但列出的解决方案都不适合我

我试图使用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.
导入cv2 回溯(最近一次呼叫最后一次): 文件“”,第1行,在 ImportError:DLL加载失败:找不到指定的模块。 我已经尝试从预下载的软件包安装opencv,我的计算机上有当前的windows media pack,我已经运行了Dependence模块,但没有列出任何Dependence错误,我不确定此时还可以尝试什么

编辑:我也尝试过安装opencv contrib python,但没有效果


如果您有任何建议,请告诉我。

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

pip install opencv-contrib-python

我将Python3.7.3更新为Python3.7.6,解决了这个问题。如果你有同样的问题,值得一试