ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)

一、项目场景:

在使用百度飞桨导入paddlehub包时,一直出现没有 paddlehub 包的错误,换了好几个镜像源都不行,出现以下错误:

WARNING: The repository located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with ‘–trusted-host pypi.douban.com’.
ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)
ERROR: No matching distribution found for setuptools_scm

distutils.errors.DistutilsError: Command ‘[‘E:\Anaconda3\envs\paddle_env\python.exe’, ‘-m’, ‘pip’, ‘–disable-pip-version-check’, ‘wheel’, ‘–no-deps’, ‘-w’, ‘C:\Users\97751\AppData\Local\Temp\tmpkdgmpwtw’, ‘–quiet’, ‘setuptools_scm’]’ returned non-zero exit status 1.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.


二、问题描述

详细报错截图如下:

在这里插入图片描述

在这里插入图片描述

三、解决办法

我们可以看到,关键开始提示错误信息的地方是这两行:

ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)
ERROR: No matching distribution found for setuptools_scm

于是,我去安装这个setuptools和setuptools_scm包,在这过程也出现小问题,可以看我上篇博客的pip镜像源安装教程。
2022年Anaconda配置 pip 国内镜像源

在这里插入图片描述

问题解决,不显示错误了。

在这里插入图片描述

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
ERROR: Could not find a version that satisfies the requirement setuptools (from versions: none) 这个错误提示是由于找不到满足要求的setuptools版本所引起的。 解决这个问题的一种方法是首先排除网络问题,*** located at pypi.douban.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with ‘--trusted-host pypi.douban.com’这个警告信息,说明你使用的pypi.douban.com镜像地址不被信任或不安全,可以尝试使用HTTPS来访问这个镜像地址,或者可以忽略这个警告并继续安装。 综上所述,解决ERROR: Could not find a version that satisfies the requirement setuptools***<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)](https://blog.csdn.net/qq_44368508/article/details/126703894)[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_1"}}] [.reference_item style="max-width: 50%"] - *2* [【错误记录】Python 安装依赖库报错 ( ERROR: Could not find a version that satisfies the requirement ...](https://blog.csdn.net/han1202012/article/details/121004160)[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_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

落花雨12138

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值