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
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.
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
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.
2. Install opencv
Tsinghua added to the mirror anacondaconda 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