在云服务器上,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
相关推荐
云飞云共享云桌面5 分钟前
东莞精密机械制造工厂如何10个SolidWorks共用一台服务器资源
java·运维·服务器·网络·数据库·电脑·制造
九皇叔叔1 小时前
Linux 系统配置 NTP 服务:轻松同步阿里云时间服务器
linux·服务器·阿里云
恒创科技HK1 小时前
香港服务器速度快慢受何影响?
运维·服务器·前端
東雪蓮☆1 小时前
K8S 概念、安装与核心工作机制详解
linux·运维·云原生·容器·kubernetes
wanhengidc2 小时前
移动端云手机的优势都有哪些?
运维·服务器·游戏·智能手机·云计算
半夏知半秋2 小时前
skynet debug_console控制台中debug指令使用
服务器·开发语言·学习·lua
liulilittle2 小时前
Linux 内核网络调优:单连接大带宽吞吐配置
linux·运维·服务器·网络·信息与通信·通信
EEE1even2 小时前
Mac查看本机发出请求的IP地址
服务器·网络·mac
愚润求学2 小时前
【Linux】数据链路层 and 其他知识
linux·运维·网络
Amelio_Ming3 小时前
systemd-journald和rsyslogd日志配置详解
linux·运维·服务器