git clone : OpenSSL SSL_read: Connection was reset, errno 10054

使用git clone时出现:

fatal: unable to access 'https://github.com/pytorch/pytorch/': OpenSSL SSL_read: Connection was reset, errno 10054

在git窗口中输入下面命令修改git配置:

$ git config --global http.sslVerify "false"

此时又报错:

fatal: unable to access 'https://github.com/pytorch/pytorch/': Failed to connect to github.com port 443 after 21097 ms: Timed out

查看自己使用的代理的端口,我这里的代理端口为4780,那么就行下述修改:

git config --global http.proxy http://127.0.0.1:4780
git config --global https.proxy http://127.0.0.1:4780

此时再执行git clone的下载任务,发现已经可以正常下载:

在这里插入图片描述

你可能感兴趣的:(git,ssl,pytorch)