{
  "id": "python/pip-resolver-dependency-cycle",
  "signature": "ERROR: Cannot install package1 and package2 because they have conflicting dependencies. Resolver: Circular dependency detected: package1 -> package2 -> package1",
  "signature_zh": "错误：无法安装 package1 和 package2，因为它们的依赖关系冲突。解析器：检测到循环依赖：package1 -> package2 -> package1",
  "regex": "ERROR:\\ Cannot\\ install\\ package1\\ and\\ package2\\ because\\ they\\ have\\ conflicting\\ dependencies\\.\\ Resolver:\\ Circular\\ dependency\\ detected:\\ package1\\ \\->\\ package2\\ \\->\\ package1",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The dependency graph contains a cycle, making it impossible to satisfy all requirements.",
  "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 dependencies entirely, but the cycle remains; runtime errors are likely.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The cycle is inherent; order does not resolve it.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.8,
      "how": "pip install package1==1.1 package2==2.1  # versions that don't depend on each other",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.7,
      "how": "pip install package1 package2 --use-deprecated=legacy-resolver",
      "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": "partial",
  "first_seen": "2026-01-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}