{
  "id": "python/pip-conflicting-dependencies",
  "signature": "ERROR: Cannot install packageA and packageB because these package versions have conflicting dependencies.",
  "signature_zh": "错误：无法安装 packageA 和 packageB，因为这些包的版本有冲突的依赖。",
  "regex": "ERROR:\\ Cannot\\ install\\ packageA\\ and\\ packageB\\ because\\ these\\ package\\ versions\\ have\\ conflicting\\ dependencies\\.",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "Two or more packages require incompatible versions of a shared dependency, leading to a resolution conflict.",
  "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Using pip install --ignore-dependencies packageA packageB",
      "why_fails": "Ignores all dependency checks, often leading to runtime import errors.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using pip install --no-deps packageA packageB",
      "why_fails": "Installs packages without their dependencies, causing missing modules.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Let pip automatically find a compatible set.",
      "success_rate": 0.7,
      "how": "pip install packageA packageB --upgrade --upgrade-strategy eager",
      "condition": "",
      "sources": []
    },
    {
      "action": "Isolate conflicting packages in separate environments.",
      "success_rate": 0.9,
      "how": "python -m venv env1 && source env1/bin/activate && pip install packageA",
      "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.83,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}