{
  "id": "python/pip-conflicting-dependencies-resolution-impossible",
  "signature": "ERROR: Cannot install foo==1.2 and bar==2.0 because these package versions have conflicting dependencies.",
  "signature_zh": "错误：无法同时安装 foo==1.2 和 bar==2.0，因为它们的依赖存在冲突。",
  "regex": "ERROR:\\ Cannot\\ install\\ foo==1\\.2\\ and\\ bar==2\\.0\\ because\\ these\\ package\\ versions\\ have\\ conflicting\\ dependencies\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "Two top-level requirements transitively require incompatible versions of a shared dependency.",
  "root_cause_type": "generic",
  "root_cause_zh": "两个顶层依赖间接要求共享依赖的不兼容版本。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Forces installation but leaves a broken dependency graph; imports may fail at runtime.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Skips dependencies entirely, causing ModuleNotFoundError later.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.85,
      "how": "pip install pip-tools\npip-compile requirements.in\npip-sync",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "pip install \"foo>=1.0,<2\" \"bar>=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.88,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2024-06-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}