Easy Install OpenCV 3.2 for Python 3.6 / 2.7 on Windows

Related: Install extra contributed packages to OpenCV 3

Using the menpo conda channel

conda install -c menpo opencv3

is the easiest cross-platform (Mac, Linux, Windows) way to install OpenCV 3.2 for Python 3 and Python 2.7.

Caveat the OpenCV installed via Conda often seem to have codec issues, where they can’t read or write video.

Alternate Windows-only .whl pip install OpenCV 3

Download the appropriate .whl file (cpMN where you have Python M.N). contrib includes OpenCV-extra packages

For example, assuming you have Python 3.6, you might download:

opencv_python-3.2.0+contrib-cp36-none-win_amd64.whl

Then from Command Prompt:

pip install opencv_python-3*win_amd64.whl

Alternate, hard way by compiling OpenCV from source

If you like to do things the hard way, you can manually compile and install OpenCV for Python 3 / 2.7 in Windows.

OpenCV Install Notes

  1. if you get the ... is not supported on this platform error be sure you’re not accidentally using Python 2.7 instead of Python 3, you may have to manually specify the path for the pip command e.g.

    c:\anaconda3\scripts\pip install opencv_python-3*.whl

Testing the Python OpenCV install

You can get some test scripts if you want to tryout your OpenCV install.