Anaconda and installing opencv environment

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/dreamLC1998/article/details/102753466

1. Install anaconda

anaconda official website: https://www.anaconda.com/
I downloaded version 3.7 corresponds to python3.7

First, download the anaconda, I downloaded the anaconda3 (ps:. Some say the Internet openCV only support python2 does not support python3, it is already past the beginning, I also believe, deliberately installed anaconda2, but not before the installation is not successful this reason .)
Some users say cv2.pyd copy the files to D: \ anaconda3 \ Lib \ site -packages I have tried, and did not solve my problem.
Directly on the tutorial.
1 installation Anaconda
Anaconda official website: https://www.anaconda.com/
I downloaded version 3.7 corresponds to python3.7

Here Insert Picture Description
Here Insert Picture Description
Note: Do not fill in here, as to why, the most direct reason is that the last time I added my own path manually executed successfully opencv, before automatically add the path did not succeed.
Here Insert Picture Description
After the installation is complete, add the path:
Right My Computer -> Properties -> Advanced System Settings -> Environment Variables -> Double-click path path
Add anaconda installation path and installation scripts path

Here Insert Picture Description
Here Insert Picture Description

Here Insert Picture DescriptionHere Insert Picture Description
After the path add a good win + r Run, type cmd into the command line to see the python version of python, anaconda installation instructions.
Here Insert Picture Description

2. Install opencv

Tsinghua added to the mirror anaconda
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes

Use Tsinghua source download opencv
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python
then tested in jupyter in, you can not make mistakes
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/dreamLC1998/article/details/102753466