ubunbu 安装opencv-contrib-python 国内源网速慢解决办法

  1. 首先运行以下代码,查看下大概版本(知道库的具体版本略过
  2. pip install opencv-contrib-python==3.4
  3. 报错得到以下提示(此库的所有详细版本)
  4. ERROR: Could not find a version that satisfies the requirement opencv-contrib-python==3.4. (from versions: 3.4.8.29, 3.4.9.31, 3.4.9.33, 3.4.10.35, 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 3.4.11.45, 3.4.13.47, 3.4.14.51, 3.4.14.53, 3.4.15.55, 3.4.16.59, 3.4.17.61, 3.4.17.63, 3.4.18.65, 4.1.2.30, 4.2.0.32, 4.2.0.34, 4.3.0.36, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46, 4.5.1.48, 4.5.2.52, 4.5.2.54, 4.5.3.56, 4.5.4.58, 4.5.4.60, 4.5.5.62, 4.5.5.64, 4.6.0.66, 4.7.0.68, 4.7.0.72)
    ERROR: No matching distribution found for opencv-contrib-python==3.4.
  5. 选择一个版本(这里我选择的3.4.9.33)
  6. 运行pip install opencv-contrib-python==3.4.9.33
  7. 指定python版本的添加修改为python3.7 -m pip install opencv-contrib-python==3.4.9.33
  8. 许多伙计会发现即使修改了国内源网速依然很满
  9. 添加 opencv-contrib-python 国内镜像网站

    https://pypi.mirrors.ustc.edu.cn/simple/

  10. 修改重新运行

    pip install opencv-contrib-python==3.4.9.33 -i https://pypi.mirrors.ustc.edu.cn/simple/
    

  其他库可能也是可以用这样的方法下载

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值