简体   繁体   中英

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:

>>> 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.

Edit: I have also tried installing opencv-contrib-python to no avail.

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. Worth a shot if you have the same issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM