一、项目场景:
在使用百度飞桨导入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:Anaconda3envspaddle_envpython.exe’, ‘-m’, ‘pip’, ‘–disable–pip–version–check’, ‘wheel’, ‘–no–deps’, ‘-w’, ‘C:Users97751AppDataLocalTemptmpkdgmpwtw’, ‘–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 国内镜像源
原文地址:https://blog.csdn.net/qq_44368508/article/details/126703894
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_34778.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!