(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  
    

安装完成

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44912159/article/details/110408999