Windows8.1 installation of OPENCV in Python environment

Source: Internet
Author: User
Tags install matplotlib

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.