注:
安装opencv-contrib-python
要求:
- python >= 3.6
- pip >= 19.3(越新越好)
步骤(全程不用3分钟):
-
创建虚拟环境
# visb为环境名,可自己命名 conda create -n visb python=3.7 # 激活环境 activate visb
-
安装
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