{
  "id": "python/pip-no-matching-distribution-with-constraints",
  "signature": "ERROR: Cannot install foo==1.2.3 and bar==4.5.6 because these package versions have conflicting dependencies.",
  "signature_zh": "错误：无法同时安装 foo==1.2.3 和 bar==4.5.6，因为这些包版本存在依赖冲突。",
  "regex": "ERROR:\\ Cannot\\ install\\ foo==1\\.2\\.3\\ and\\ bar==4\\.5\\.6\\ because\\ these\\ package\\ versions\\ have\\ conflicting\\ dependencies\\.",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The new pip resolver found no assignment of transitive dependency versions that satisfies all declared version constraints simultaneously.",
  "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": "",
      "why_fails": "Installs incompatible transitive deps that will fail at import/runtime with confusing errors.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Whack-a-mole; each new pin surfaces the next conflict and the final set is often still inconsistent.",
      "fail_rate": 0.72,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Legacy resolver silently picks the first candidate, hiding the conflict and shipping a broken environment.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Install pip-tools and let it compute a consistent set: `pip install pip-tools && pip-compile requirements.in` then `pip-sync`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.88,
      "how": "Ask pip to explain: `pip install foo==1.2.3 bar==4.5.6 -v` and read the 'The conflict is caused by:' block, then relax one upper bound.",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-09",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}