hanny-liu  

转载自:https://blog.csdn.net/kingroc/article/details/86526150

在下载caffe2的时候遇到了,git断掉的问题。
运行命令:

~/source/$ git clone --recursive https://github.com/pytorch/pytorch.git

下载一半就:

error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
fatal: clone of 'https://github.com/google/protobuf.git' into submodule path 'third_party/protobuf' failed

咋办,重新下载继续断怎么办?
简单,进入目录pytorch,这个就是刚刚下载的那个目录。

~/source/$ cd pytorch
~/source/pytorch$ git submodule update --init --recursive

这样就继续开始下载了。
后续还会断很多次,重复上面的命令就可以了。

posted on 2020-01-03 15:39  hanny-liu  阅读(853)  评论(0编辑  收藏  举报