【成功安装】在python环境中安装opencv库 - 2021-03-10

注: 安装opencv-contrib-python要求

  • python >= 3.6
  • pip >= 19.3(越新越好)
  1. 使用 anaconda prompt 升级 pip 模块:
    打开 anaconda prompt ,运行 python -m pip install --upgrade pip
使用 anaconda prompt 升级 pip 模块
  1. 安装步骤和结果:

参考链接:(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

安装成功(使用清华镜像源的安装速度很快)

你可能感兴趣的:(【成功安装】在python环境中安装opencv库 - 2021-03-10)