开发者社区 > 云原生 > Serverless > 正文

函数计算FC下载这个依赖包一直提示网络中断,要怎么办?

函数计算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.

展开
收起
三分钟热度的鱼 2023-09-13 19:59:16 51 0
1 条回答
写回答
取消 提交回答
  • 从国内镜像下吧,另外 torch 是有的,您装其他版本可能会影响 sd 启动。此回答整理自钉群“【答疑群】函数计算 AIGC 场景技术交流”

    2023-09-13 20:28:22
    赞同 展开评论 打赏

快速交付实现商业价值。

相关产品

  • 函数计算
  • 相关电子书

    更多
    Session:更加安全、可靠的数据中心网络产品更新 立即下载
    Session:极简易用的全球化网络产品更新 立即下载
    Session:弹性、高可用、可观测的应用交付网络产品更新 立即下载