注: 安装opencv-contrib-python要求
- python >= 3.6
- pip >= 19.3(越新越好)
- 使用 anaconda prompt 升级 pip 模块:
打开 anaconda prompt ,运行python -m pip install --upgrade pip
- 安装步骤和结果:
参考链接:(2020)opencv-python + opencv-contrib-python 环境快速安装步骤_Troublemaker丶的博客-CSDN博客
https://blog.csdn.net/weixin_44912159/article/details/110408999
安装numpy和matplotlib
pip install numpy matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple
安装opencv-python
pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
安装opencv-contrib-python
pip install opencv-contrib-python -i https://pypi.tuna.tsinghua.edu.cn/simple