Using the menpo conda channel
conda install -c menpo opencv3
Caveat the OpenCV installed via Conda often seem to have codec issues, where they can’t read or write video.
.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:
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
if you get the
... is not supported on this platformerror be sure you’re not accidentally using Python 2.7 instead of Python 3, you may have to manually specify the path for the
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.