1、在https://www.anaconda.com/download/安装anaconda
2、安装opencv-python
在Anaconda Prompt终端里依次输入cd C:\Users\Admini\anaconda3(安装路径)
cd Scripts
pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
输入cd ..(退回上一个)
python
import cv2
cv2.__version__
exit()
3、安装opencv-contrib-python
再在Anaconda Prompt终端里cd Scripts
pip install opencv-contrib-python -i https://pypi.tuna.tsinghua.edu.cn/simple