Ask Your Question

Revision history [back]

Windows install--cv2.pyd in right folder, but can't find dlls

I need to get OpenCV 3.x installed on a Windows 7 (x64) machine, for a Python cv2 project. I installed Anaconda, to get Python 2.7 with numpy. I installed cmake 2.8, and ran it on the newest source code from github (3.1). I ran Visual Studio 2012, and built opencv. Everything seems to install okay:


...
    7>  -- Up-to-date: C:/opencv/build/install/include/opencv2/videostab/wobble_suppression.hpp
    7>  -- Installing: C:/Anaconda/Lib/site-packages/cv2.pyd
    7>  -- Up-to-date: C:/opencv/build/install/etc/haarcascades/haarcascade_eye.xml
    7>  -- Up-to-date: C:/opencv/build/install/etc/haarcascades/haarcascade_eye_tree_eyeglasses.xml
...

(at least, it's putting the cv2.pyd file in the right place). When I try to import cv2 in python, though, all I get is an error message:


>>> 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 added the OpenCV path to the system environment, as C:\opencv\build\install\x64\vc11. But that didn't help. What am I missing?