{
  "id": "python/pip-dependency-resolution-too-deep",
  "signature": "ERROR: ResolutionImpossible: ResolutionTooDeep: backtracking too deep (2000000 iterations)",
  "signature_zh": "错误：ResolutionImpossible：ResolutionTooDeep：回溯过深（2000000 次迭代）",
  "regex": "ERROR:\\ ResolutionImpossible:\\ ResolutionTooDeep:\\ backtracking\\ too\\ deep\\ \\(2000000\\ iterations\\)",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "pip's resolver hit its backtracking limit while trying to satisfy a large, tightly constrained dependency graph. Usually caused by overly broad or conflicting version pins across many packages.",
  "root_cause_type": "generic",
  "root_cause_zh": "pip 解析器在尝试满足大型、约束严格的依赖图时达到了回溯上限。通常由许多包之间过于宽泛或冲突的版本固定引起。",
  "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": "Legacy resolver picks versions greedily and produces an inconsistent environment that breaks at runtime.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Allowing pre-releases expands the search space and worsens backtracking.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.88,
      "how": "pip install pip-tools\npip-compile --resolver=backtracking requirements.in\npip install -r requirements.txt",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.82,
      "how": "pip install -c constraints.txt core-deps\npip install -c constraints.txt app-deps",
      "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.82,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2024-10-02",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}