{
  "id": "python/pip-conflict-with-requirements",
  "signature": "ERROR: Cannot install package1==1.0 and package2==2.0 because these package versions have conflicting dependencies.",
  "signature_zh": "错误：无法安装 package1==1.0 和 package2==2.0，因为这些包版本存在冲突的依赖关系。",
  "regex": "ERROR:\\ Cannot\\ install\\ package1==1\\.0\\ and\\ package2==2\\.0\\ because\\ these\\ package\\ versions\\ have\\ conflicting\\ dependencies\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "Two or more packages require incompatible versions of a common dependency.",
  "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": "Ignores the conflict but may cause runtime errors due to missing or wrong dependency versions.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The conflict remains; pip will still raise the error when resolving the full set.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.8,
      "how": "pip install package1 package2 --upgrade --constraint constraints.txt",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "python -m venv venv && source venv/bin/activate && pip install package1==1.1 package2==1.9",
      "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-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}