Ask Your Question

Revision history [back]

I had the same problems; and spent ~3 hours trial & error until I finally found this solution that was successful:

I have posted a very simple method to install OpenCV 2.4 for Python in Windows here : Install OpenCV in Windows for Python

It is just as simple as copy and paste. Hope it will be useful for future viewers.

  1. Download Python, Numpy, OpenCV from their official sites.
  2. Extract OpenCV (will be extracted to a folder opencv)
  3. Copy ..\opencv\build\python\x86\2.7\cv2.pyd and paste it in C:\Python27\Lib\site-packages
  4. (Re-)Open Python IDLE or terminal, and type >>> import cv2

If no errors shown, it is OK.