【问题标题】:ERROR: Command errored out with exit status 128错误:命令出错,退出状态为 128
【发布时间】:2022-08-07 22:33:41
【问题描述】:

我正在尝试在 Google Colab 上下载内部 Git 以运行 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.

我们如何解决这个问题?

    标签: azure-devops pip azure-pipelines google-colaboratory


    【解决方案1】:

    请改用以下代码:

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

    【讨论】:

      猜你喜欢
      • 2020-03-05
      • 2020-07-08
      • 1970-01-01
      • 2021-10-29
      • 2021-05-31
      • 2020-03-12
      • 2021-08-07
      • 1970-01-01
      相关资源
      最近更新 更多