ImportError: No module named cv2
The easiest way to install OpenCV on Windows is to simply copy the cv2.pyd
file into Python's site-packages
directory (e.g. C:\python27\Lib\site-packages
).
To get the cv2.pyd
file, download and extract the latest version of the OpenCV installation executable from http://sourceforge.net/projects/opencvlibrary/files/opencv-win/ and browse the extracted folder to find the file in the relevant build
directory (e.g. build\python\x86\2.7
).