Python/OpenCV/Numpy/Scipy Installation for Windows

Note It is recommended that you get a 32 bit python even if you have a 64 bit system. This is because official numpy and scipy packages are available only in 32 bit, which will disagree with a 64 bit python. If you do want to use 64 bit python, you are welcome to try the unofficial numpy, scipy and opencv packages found here

C:\
C:\opencv\build\python\2.7\
  • Copy the file cv2.pyd and paste it into
C:\Python27\Lib\site-packages\
  • Verify your install. Run Python(command line) from the start menu, and type in:
import numpy
import scipy
import cv2
numpy.__version__
scipy.__version__
cv2.__version__

(note the double underscores) If this code executes without errors, you are all set!

Advertisements