{
  "id": "python/pip-install-from-git-failed",
  "signature": "ERROR: Command errored out with exit status 128: git clone -q https://github.com/foo/bar.git /tmp/pip-install-... Check the logs for full command output.",
  "signature_zh": "错误：命令出错，退出状态 128：git clone -q https://github.com/foo/bar.git /tmp/pip-install-... 检查日志以获取完整命令输出。",
  "regex": "ERROR:\\ Command\\ errored\\ out\\ with\\ exit\\ status\\ 128:\\ git\\ clone\\ \\-q\\ https://github\\.com/foo/bar\\.git\\ /tmp/pip\\-install\\-\\.\\.\\.\\ Check\\ the\\ logs\\ for\\ full\\ command\\ output\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "pip failed to clone a Git repository, often due to network issues, missing git, or authentication requirements.",
  "root_cause_type": "generic",
  "root_cause_zh": "pip 无法克隆 Git 仓库，通常由于网络问题、缺少 git 或需要身份验证。",
  "versions": [
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "If git is missing or network blocked, retries fail.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Does not fix the clone failure.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Ensure git is installed and network accessible: `git --version` and `git clone <url>` manually.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "Use SSH URL or provide credentials: `pip install git+ssh://git@github.com/foo/bar.git`.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-06-18",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}