解决 ERROR: Command errored out with exit status 128: git clone -q

在安装 git+github 网页时出现此错误,全称是

ERROR: Command errored out with exit status 128: git clone -q https://github.com/ildoonet/pytorch-gradual-warmup-lr.git /tmp/pip-req-build-88ue_mql Check the logs for full command output.

参考解决方案
https://github.com/spdx/spdx-online-tools/issues/232

即将github网页中的http://换成git://

# 本来是
pip install git+http://github.com/ildoonet/pytorch-gradual-warmup-lr.git
# 改为
pip install git+git://github.com/ildoonet/pytorch-gradual-warmup-lr.git

运行成功。

上一篇:面试官问:什么是浅拷贝和深拷贝?


下一篇:xshell连接本地虚拟机中的centos