文章目录
问题
在执行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