Cannot import cv2 after installation on windows

asked 2018-03-02 16:56:56 -0600

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

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.

edit retag flag offensive close merge delete

Comments

what's the exact name of your pyd ?

any chance, you built a 32 bit one ?

berak gravatar imageberak ( 2018-03-02 17:05:53 -0600 )edit