ERROR:Could not find a version that satisfies the requirement opencv-python(from versions: none)解决办法

问题描述:

解决办法:
1.先安装清华镜像

pip install https://pypi.tuna.tsinghua.edu.cn/simple

可能会报错,忽略即可。

2.接着运行下面的命令

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

如遇到权限问题,按照提示加入–user。

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

经过检测,成功。

 

  • 0
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
报错信息 "ERROR: Could not find a version that satisfies the requirement opencv-contrib-python (from versions: none)" 表明在安装opencv-contrib-python时找不到满足要求的版本。 这个问题可能由于以下几个原因导致: 1. 没有正确配置Python包管理器(如pip)的镜像源。 2. 没有安装正确版本的opencv-contrib-python。 3. 包名称拼写错误或没有提供正确的版本号。 为了解决这个问题,可以按照以下步骤操作: 1. 确保你的pip已经配置了正确的镜像源,可以使用引用中提供的命令来安装pip并设置镜像源。 2. 检查你的Python版本是否与opencv-contrib-python的兼容版本。你可以使用引用中提供的网站下载适合你Python版本的opencv-contrib-python安装包。 3. 确保你输入的包名和版本号是正确的,并且符合要求。你可以查阅相关文档或官方网站来获取正确的包名和版本号。 通过以上步骤的检查和操作,应该能够解决报错信息"ERROR: Could not find a version that satisfies the requirement opencv-contrib-python (from versions: none)"。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [【Bug】ERROR: Could not find a version that satisfies the requirement pip (from versions: none)](https://blog.csdn.net/m0_63636799/article/details/130023320)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [Could not find a version that satisfies the requirement PIL (from versions: ) No matching distribu](https://download.csdn.net/download/weixin_38722721/13750519)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值