{
  "id": "python/pip-conflicting-dependencies-backtracking",
  "signature": "ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\nfoo 1.0 requires bar<2, but you have bar 2.1 which is incompatible.",
  "signature_zh": "错误：pip 的依赖解析器目前未考虑所有已安装的包。此行为是以下依赖冲突的根源。\nfoo 1.0 要求 bar<2，但你安装了 bar 2.1，不兼容。",
  "regex": "ERROR:\\ pip's\\ dependency\\ resolver\\ does\\ not\\ currently\\ take\\ into\\ account\\ all\\ the\\ packages\\ that\\ are\\ installed\\.\\ This\\ behaviour\\ is\\ the\\ source\\ of\\ the\\ following\\ dependency\\ conflicts\\.\\\nfoo\\ 1\\.0\\ requires\\ bar<2,\\ but\\ you\\ have\\ bar\\ 2\\.1\\ which\\ is\\ incompatible\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "An existing environment already contains a package version that conflicts with a newly installed package; the resolver only warns rather than fixing the pre-existing install.",
  "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": "Upgrades both without regard to the constraint; may re-trigger the same conflict or introduce new ones.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Force-reinstall does not resolve version constraints; the same incompatible pair is reinstalled.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "python -m venv .venv && source .venv/bin/activate\npip install pip-tools\npip-compile requirements.in\npip-sync requirements.txt",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "pip install 'foo==1.0' 'bar<2'\npip check",
      "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-09-14",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}