函数计算FC下载这个依赖包一直提示网络中断,要怎么办?File "/opt/python3.10/lib/python3.10/site-packages/setuptools/dist.py", line 806, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "/opt/python3.10/lib/python3.10/site-packages/pkg_resources/init.py", line 766, in resolve
dist = best[req.key] = env.best_match(
File "/opt/python3.10/lib/python3.10/site-packages/pkg_resources/init.py", line 1051, in best_match
return self.obtain(req, installer)
File "/opt/python3.10/lib/python3.10/site-packages/pkg_resources/init.py", line 1063, in obtain
return installer(requirement)
File "/opt/python3.10/lib/python3.10/site-packages/setuptools/dist.py", line 877, in fetch_build_egg
return fetch_build_egg(self, req)
File "/opt/python3.10/lib/python3.10/site-packages/setuptools/installer.py", line 77, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/opt/python3.10/bin/python3.10', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmplvbovolo', '--quiet', 'torch']' returned non-zero exit status 2.
[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.
WARNING: You are using pip version 22.0.4; however, version 23.2.1 is available.
You should consider upgrading via the '/opt/python3.10/bin/python3.10 -m pip install --upgrade pip' command.
从国内镜像下吧,另外 torch 是有的,您装其他版本可能会影响 sd 启动。此回答整理自钉群“【答疑群】函数计算 AIGC 场景技术交流”
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。