在云服务器上,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
相关推荐
SkyWalking中文站18 小时前
认识 Horizon UI · 5/17:3D 基础设施地图
运维·监控·自动化运维
YuePeng18 小时前
写了五年注解的低代码框架,2.0 决定让你连注解都不用写了
github·产品
小白ai18 小时前
从"能 ping 通吗"到"为什么上不了网"——我写了一个网络故障诊断引擎
github
徐小夕20 小时前
jitword 协同文档3.2发布:打造浏览器中最强word编辑器
前端·架构·github
齐翊1 天前
分享一个在 Claude Code 里 [同时] 用多个 ApiKey 的方法
程序员·github·agent
A_Lonely_Cat1 天前
记一次 GitHub 幽灵协作者大清洗:强制重写 Git 历史与穿透 CDN 缓存实践
git·github
极光技术熊2 天前
Spring AI 从入门到精通:构建你的 AI 开发知识体系
后端·github
SkyWalking中文站2 天前
认识 Horizon UI · 1/17:SkyWalking 新一代可观测性控制台
运维·前端·监控
用户39483951075532 天前
怎么让我的 Agent 真正"懂"我?——关于记忆、经验学习与预测的一些真实体验
github
雪梨酱QAQ2 天前
Kubeneters HA Cluster部署
运维