conda安装opencv-python

参考:https://blog.csdn.net/wmm131333/article/details/103359370/

pip install opencv-python==3.4.2.16 -i "https://pypi.doubanio.com/simple/" --trusted-host pypi.douban.com


pip install opencv-contrib-python==3.4.2.16 -i "https://pypi.doubanio.com/simple/"

效果分别如下:

(opencv) C:\Users\51328>pip install opencv-python==3.4.2.16 -i "https://pypi.doubanio.com/simple/" --trusted-host pypi.douban.com
Looking in indexes: https://pypi.doubanio.com/simple/
Collecting opencv-python==3.4.2.16
  Downloading https://mirrors.cloud.tencent.com/pypi/packages/bd/c9/364f02bb1d2186405995dbb2b579f3c55b68134a9513a7068e0cdbaeb928/opencv_python-3.4.2.16-cp37-cp37m-win_amd64.whl (33.8 MB)
     ---------------------------------------- 33.8/33.8 MB 5.5 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.14.5 in c:\users\51328\anaconda3\envs\opencv\lib\site-packages (from opencv-python==3.4.2.16) (1.21.5)
WARNING: The candidate selected for download or install is a yanked version: 'opencv-python' candidate (version 3.4.2.16 at https://mirrors.cloud.tencent.com/pypi/packages/bd/c9/364f02bb1d2186405995dbb2b579f3c55b68134a9513a7068e0cdbaeb928/opencv_python-3.4.2.16-cp37-cp37m-win_amd64.whl#sha256=b0f8c8a17514960318881c539d462eac3c2a8c307e7cf71454bd407ba408f496 (from https://mirrors.cloud.tencent.com/pypi/simple/opencv-python/))
Reason for being yanked: Release deprecated
Installing collected packages: opencv-python
Successfully installed opencv-python-3.4.2.16

(opencv) C:\Users\51328>conda list opencv
# packages in environment at C:\Users\51328\anaconda3\envs\opencv:
#
# Name                    Version                   Build  Channel
opencv-python             3.4.2.16                 pypi_0    pypi

(opencv) C:\Users\51328>pip install opencv-contrib-python==3.4.2.16 -i "https://pypi.doubanio.com/simple/"
Looking in indexes: https://pypi.doubanio.com/simple/
Collecting opencv-contrib-python==3.4.2.16
  Downloading https://mirrors.cloud.tencent.com/pypi/packages/a2/1c/778cb8a5f4026d49e299d34a98791599f7485553c29889385c43158b6f43/opencv_contrib_python-3.4.2.16-cp37-cp37m-win_amd64.whl (39.6 MB)
     ---------------------------------------- 39.6/39.6 MB 973.8 kB/s eta 0:00:00
Requirement already satisfied: numpy>=1.14.5 in c:\users\51328\anaconda3\envs\opencv\lib\site-packages (from opencv-contrib-python==3.4.2.16) (1.21.5)
WARNING: The candidate selected for download or install is a yanked version: 'opencv-contrib-python' candidate (version 3.4.2.16 at https://mirrors.cloud.tencent.com/pypi/packages/a2/1c/778cb8a5f4026d49e299d34a98791599f7485553c29889385c43158b6f43/opencv_contrib_python-3.4.2.16-cp37-cp37m-win_amd64.whl#sha256=bb3dd2dc52727e4f70524ac7a3604e746ae98e5e92f19f237dde1327dd4ae380 (from https://mirrors.cloud.tencent.com/pypi/simple/opencv-contrib-python/))
Reason for being yanked: Release deprecated
Installing collected packages: opencv-contrib-python
Successfully installed opencv-contrib-python-3.4.2.16

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值