ERROR:命令出错,退出状态为128



我试图下载内部Git在谷歌Colab运行ML模型;然而,一开始,我像这样下载

!pip install git+https://dev.azure.com/xxxxx/xxxxxx

它显示了错误,所以我在这个网站https://qdmana.com/2022/02/202202190011230865.html找到,显示用git替换https可能会有帮助。

!pip install git+git://dev.azure.com/xxxxx/xxxxxx

然而,它仍然显示如下错误,

Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting git+git://dev.azure.com/xxx/xxx
Cloning git://dev.azure.com/xxx/xxx to /tmp/pip-req-build-mmz02x7l
Running command git clone -q git://dev.azure.com/xxx/xxx /tmp/pip-req-build-mmz02x7l
fatal: unable to connect to dev.azure.com:
dev.azure.com[0: 13.107.42.20]: errno=Connection timed out
dev.azure.com[1: 2620:1ec:21::20]: errno=Cannot assign requested address
WARNING: Discarding git+git://dev.azure.com/xxx/xxx Command errored out with exit status 128: git clone -q git://dev.azure.com/xxx/xxx /tmp/pip-req-build-mmz02x7l Check the logs for full command output.
ERROR: Command errored out with exit status 128: git clone -q git://dev.azure.com/xxx/xxx /tmp/pip-req-build-mmz02x7l Check the logs for full command output.

我们如何解决这个问题?

使用下面的代码代替:

git clone https://{your username}:{your password}@dev.azure.com/xxxxxxx 

最新更新