在云服务器上,clone github时报Connection timed out&exit code: 128

文章目录

问题

在执行pip install安装依赖时,需要clone github代码,此时报了Connection timed out&exit code: 128错误,原因是访问超时了,此时需要使用代理

bash 复制代码
fatal: unable to access 'https://github.com/huggingface/peft/': Failed to connect to github.com port 443 after 130446 ms: Connection timed out
  error: subprocess-exited-with-error
  
  × git clone --filter=blob:none --quiet https://github.com/huggingface/peft /tmp/pip-req-build-6zluqgm4 did not run successfully.
  │ exit code: 128
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.

解决方案

使用https://ghproxy.com/代理,可以成功且快速地clone,如下图所示,在github地址前,加上,如:

bash 复制代码
https://ghproxy.com/https://github.com/huggingface/peft
相关推荐
JuiceFS11 小时前
从 MLPerf Storage v2.0 看 AI 训练中的存储性能与扩展能力
运维·后端
逛逛GitHub13 小时前
斩获 2 万多 Star!国外老哥把全网 n8n 工作流都开源了
github·工作流引擎
chen94516 小时前
mysql 3节点mgr集群部署
运维·后端
杨杨杨大侠17 小时前
Atlas Mapper 案例 01:初级开发者 - 电商订单系统开发
java·开源·github
LH_R17 小时前
OneTerm开源堡垒机实战(三):功能扩展与效率提升
运维·后端·安全
dessler18 小时前
Hadoop HDFS-高可用集群部署
linux·运维·hdfs
绝无仅有20 小时前
后端 Go 经典面试常见问题解析与总结
后端·面试·github
绝无仅有20 小时前
后端工程师面试常见问题与回答解析总结
后端·面试·github
逛逛GitHub1 天前
发现一个 AI 大模型服务质量榜单。
github
少妇的美梦1 天前
logstash教程
运维