程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Anaconda3-5.2.0+python3.6 steps and procedures for installing opencv-python3.4.1.15

編輯:Python

Installation steps Directory :

  • One 、 Installation version problem
  • Two 、 Installation steps
    • 1. install Anaconda3-5.2.0
    • 2. install opencv
  • 3、 ... and 、 Another way to install ( Choose to see )

One 、 Installation version problem

Our first choice opencv-python 3.4.1.15 edition , Because some methods needed to be patented in later versions , It's not working , This version is the last one that can use these methods , So I recommend that you choose this version . It corresponds to anaconda3-5.2.0 edition .

Two 、 Installation steps

1. install Anaconda3-5.2.0

It will be faster to install with this image :anaconda Tsinghua mirror

2. install opencv

1、 Use anaconda prompt, similar cmd Things that are . find anaconda Where it is , See if there is python:

2、 Get into Scripts, Use pip install opencv-python:
Instructions for :pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python==3.4.1.15

3、 There is a line of red in the above figure, which is ignored first , First, check whether the successful installation in the following prompt is really successful :

version There are two underscores before and after , The version number indicates that the installation is successful .

4、 And the red one , what did you say? msgpack No installation , So the following is installed , Students without this error do not need to install .
Instructions for :pip install msgpack
pip install msgpack-python


5、 Use pip install opencv-contrib-python :
Instructions for :pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-contrib-python==3.4.1.15

3、 ... and 、 Another way to install ( Choose to see )

If an error occurs in the above method due to a version mismatch , Unable to install , You can choose another installation method . Is to put opencv-python Of .whl Download the file locally , Then install .

On this website :Python Extension Packages for Windows - Christoph Gohlke (uci.edu)
Click open and look inside opencv, After clicking on it, there is this :opencv

cp37 It means fit python3.7 Use
Click download to , You can download it to the front anaconda Below Scripts Under the document . And then in anaconda prompt in , Input pip install ( A long list of names for the version you chose )


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved