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

文章目录

问题

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

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地址前,加上,如:

https://ghproxy.com/https://github.com/huggingface/peft

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_40600379/article/details/132038667
今日推荐