(2020)opencv-python + opencv-contrib-python 环境快速安装步骤

注:

安装opencv-contrib-python要求:

  1. python >= 3.6
  2. pip >= 19.3(越新越好)

步骤(全程不用3分钟):

  1. 创建虚拟环境

    # visb为环境名,可自己命名
    conda create -n visb python=3.7  
    # 激活环境
    activate visb
    
  2. 安装numpymatplotlib

    pip install numpy matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple
    
  3. 安装opencv-python

    pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
    
  4. 安装opencv-contrib-python

    pip install opencv-contrib-python -i https://pypi.tuna.tsinghua.edu.cn/simple  
    

安装完成

(2020)opencv-python + opencv-contrib-python 环境快速安装步骤

上一篇:linux Deepin 20 系统更新源


下一篇:Django 修改 Admin 后台页面布局