{
  "id": "python/pip-resolution-impossible-conflicting-dependencies",
  "signature": "ERROR: Cannot install foo==1.0 and bar==2.0 because these package versions have conflicting dependencies.\n\nThe conflict is caused by:\n    The user requested foo==1.0\n    bar 2.0 depends on foo<1.0",
  "signature_zh": "错误：无法安装 foo==1.0 和 bar==2.0，因为这些包版本具有冲突的依赖关系。\n\n冲突原因：\n    用户请求 foo==1.0\n    bar 2.0 依赖于 foo<1.0",
  "regex": "ERROR:\\ Cannot\\ install\\ foo==1\\.0\\ and\\ bar==2\\.0\\ because\\ these\\ package\\ versions\\ have\\ conflicting\\ dependencies\\.\\\n\\\nThe\\ conflict\\ is\\ caused\\ by:\\\n\\ \\ \\ \\ The\\ user\\ requested\\ foo==1\\.0\\\n\\ \\ \\ \\ bar\\ 2\\.0\\ depends\\ on\\ foo<1\\.0",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The dependency resolver cannot find a set of versions satisfying all constraints simultaneously.",
  "root_cause_type": "generic",
  "root_cause_zh": "依赖解析器无法找到同时满足所有约束的版本集合。",
  "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": "Does not resolve version conflicts; pip still refuses.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Skips dependencies, leading to runtime ImportErrors later.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Relax version pins: `pip install foo bar` without exact versions, or use `pip install 'foo>=1.0' 'bar<2.0'`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "Use a resolver like `pip-compile` from pip-tools to generate a consistent set.",
      "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-04-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}