Skip to content

Instantly share code, notes, and snippets.

@mlhales
Last active December 19, 2015 08:19
Show Gist options
  • Save mlhales/5924533 to your computer and use it in GitHub Desktop.
Save mlhales/5924533 to your computer and use it in GitHub Desktop.
Install Python for Windows.

#Install Python for Windows with OpenCV

##Install the software

Python

Pip

Setuptools

numpy

scipy

Build OpenCV with Python support enabled.

##Setup the environment

Modify your path to include Python, and the scripts.

C:\Python27;C:\Python27\Scripts"

Add OpenCV to your path.

C:\Users\mike\Documents\Source\OpenCV2.4.6\build\bin\Release;C:\Users\mike\Documents\Source\OpenCV2.4.6\build\bin\Debug

Add OpenCV python files to your PYTHONPATH

C:\Users\mike\Documents\Source\OpenCV2.4.6\opencv\build\python\2.7

You will have to reboot to get the new paths to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment