{
  "id": "python/pip-dependency-conflict",
  "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.\nmypackage 1.0 requires otherpackage<2.0, but you have otherpackage 2.1 which is incompatible.",
  "signature_zh": "错误：pip 的依赖解析器目前未考虑所有已安装的包。此行为是以下依赖冲突的根源。\nmypackage 1.0 需要 otherpackage<2.0，但您有 otherpackage 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\\.\\\nmypackage\\ 1\\.0\\ requires\\ otherpackage<2\\.0,\\ but\\ you\\ have\\ otherpackage\\ 2\\.1\\ which\\ is\\ incompatible\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "Installed packages have conflicting version requirements that pip cannot automatically resolve.",
  "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": "Running pip install --upgrade mypackage",
      "why_fails": "Upgrading mypackage may still require the conflicting version of otherpackage.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    },
    {
      "action": "Ignoring the warning and continuing",
      "why_fails": "The conflict may cause runtime import errors or unexpected behavior.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Create a new virtual environment and install compatible versions",
      "success_rate": 0.9,
      "how": "python -m venv fresh_env && source fresh_env/bin/activate && pip install mypackage==1.0 otherpackage==1.9",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use pip-tools to resolve dependencies",
      "success_rate": 0.85,
      "how": "pip install pip-tools && pip-compile requirements.in && pip-sync requirements.txt",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-08-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}