注: 安裝opencv-contrib-python要求
- python >= 3.6
- pip >= 19.3(越新越好)
- 使用 anaconda prompt 升級 pip 模塊:
打開 anaconda prompt ,運(yùn)行python -m pip install --upgrade pip
使用 anaconda prompt 升級 pip 模塊
- 安裝步驟和結(jié)果:
參考鏈接:(2020)opencv-python + opencv-contrib-python 環(huán)境快速安裝步驟_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
安裝成功(使用清華鏡像源的安裝速度很快)

