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: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)

三、解决办法

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

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 国内镜像源

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

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

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

Original: https://blog.csdn.net/qq_44368508/article/details/126703894
Author: 落花雨96
Title: ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/770404/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球