It is recommended to install the PYTHON-3.5.2-AMD64 version and other versions of the PIP will encounter problems.
First step to upgrade Pip
> python-m pip Install--upgrad pip
There may be a time-out, either PIP upgrade or pip install other module principle, you need to set the Times
> python-m pip --default-timeout=100 install--upgrad pip
The other is the same for example
> Pip--default-timeout=100 Install NumPy
----------------------------------------------------------------------------------------
Install related modules
Restart the command line, and then enter the following code to install the module numpy,matplotlib
1 > Pip Install numpy
2 > Pip Install matplotlib
----------------------------------------------------------------------------------------
http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv
Download File OPENCV_PYTHON?3.1.0?CP35?CP35M?WIN_AMD64.WHL
Put the file in C:\Users\john\AppData\Local\Programs\Python\Python35\Lib\site-packages\ according to your own needs to other locations can also
Execute under CMD command
Pip Install C:\Users\john\AppData\Local\Programs\Python\Python35\Lib\site-packages\opencv_ Python-3.1.0-cp35-cp35m-win_amd64.whl
Successful execution
Enter Python below cmd into the Python command line and enter import CV2, if no error message proves the installation was successful.
Windows8.1 installation of OPENCV in Python environment