Ask Your Question

Revision history [back]

Cannot import cv2 after installation on windows

I installed opencv on my windows 10 64-bit machine. This is the link I used

https://docs.opencv.org/3.3.1/d5/de5/tutorial_py_setup_in_windows.html

After step 17, the build is successful and I see the cv2.pyd file in the C:/Python27/Lib/site-packages folder. However, when I try to import cv2, I get this error:

C:\WINDOWS\system32>python Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

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

What am I missing?

Thanks in advance.