fatal: unable to access ‘https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/‘: Failed to

原因:

Cloning into ‘all-MiniLM-L6-v2’…
fatal: unable to access ‘https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/’: Failed to connect to huggingface.co port 443 after 21306 ms: Couldn’t connect to server
在这里插入图片描述

设置 HTTP/HTTPS 代理

git config --global --add http.proxy localhost:10808
git config --global --add http.sslVerify false
git config --global --add https.proxy localhost:10808
git config --global --add https.sslVerify false

设置 socks5 代理

git config --global --add http.proxy socks5://localhost:10808
git config --global --add http.sslVerify false
git config --global --add https.proxy socks5://localhost:10808
git config --global --add https.sslVerify false

取消代理设置

git config --global --unset http.proxy
git config --global --unset http.sslVerify
git config --global --unset https.proxy
git config --global --unset https.sslVerify

常见问题

warning: http.proxy has multiple values
error: cannot overwrite multiple values with a single value

如果你曾设置过代理,便会在再设置代理时遭遇此错误。使用 --unset-all 替代 --unset 即可解决。

git config --global --unset-all http.proxy
git config --global --unset-all https.proxy
  • 4
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值