{
  "id": "python/pip-vcs-dependency-git-not-found",
  "signature": "ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?",
  "signature_zh": "错误：找不到命令 'git' - 你是否已安装 'git' 并将其加入 PATH？",
  "regex": "ERROR:\\ Cannot\\ find\\ command\\ 'git'\\ \\-\\ do\\ you\\ have\\ 'git'\\ installed\\ and\\ in\\ your\\ PATH\\?",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "A requirement uses a VCS URL (e.g., `git+https://...`) but git is not installed or not on PATH in the build environment (common in slim Docker images).",
  "root_cause_type": "generic",
  "root_cause_zh": "某个需求使用了 VCS URL（如 `git+https://...`），但构建环境中未安装 git 或 git 不在 PATH 中（常见于精简 Docker 镜像）。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "git is still required to clone; --no-deps does not bypass the VCS fetch.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Trusted-host affects TLS, not the missing git binary.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Install git in the image/container:\napt-get update && apt-get install -y git\npip install git+https://github.com/org/repo",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Pin to a released wheel instead of a VCS URL:\npip install org-package==1.2.3",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-09-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}