Home  >  Article  >  Backend Development  >  How to install opencv with Python3.5 in Windows 10

How to install opencv with Python3.5 in Windows 10

php中世界最好的语言
php中世界最好的语言Original
2018-04-09 11:51:142719browse

This time I will show you how to installopencv in Python3.5 in Window10. What are the precautions for installing opencv in Python3.5 in Window10? The following is a practical case, let’s take a look.

1. Determine the Python version, the computer is 64-bit or 32-bit

Open cmd (window key R, enter cmd and it will appear), in Command line input: Open cmd (window key R, enter cmd to appear), enter on the command line: python

Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

, you can see that the version is 3.5, 64-bit

2. Download the corresponding version of the file

Download URL: http://www.lfd.uci.edu/~gohlke/pythonlibs/

The choice of version 3.5 corresponds to:

opencv_python-3.2.0-cp35-cp35m-win_amd64.whl

3. Modify the file name

Modify the file name after downloading (this is a pitfall in the installation, it will not be installed without changing it):

Change the original file name to opencv_python -3.2.0-cp35-cp35m-win_amd64.whl The cp34m in the middle becomes none, so the file name is changed to: opencv_python-3.2.0-cp35-none-win_amd64.whl

If it is not changed Otherwise it will appear:

opencv_python-3.2.0-cp35-cp35-win_amd64.whl is not a supported wheel on this platform. Modify the file name after downloading (this is a pitfall during installation, It cannot be installed without changing it):

4. Installation

Open cmd (window key R, enter cmd and it will appear), in the command Line input:

pip install 路径名\opencv_python-3.2.0-cp35-none-win_amd64.whl

That’s it.

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!

Recommended reading:

How to implement Mahalanobis distance in Python

##How to batch read txt files into DataFrame format in Python

The above is the detailed content of How to install opencv with Python3.5 in Windows 10. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn