{
  "id": "python/pip-install-error-requires-python-version-conflict",
  "signature": "ERROR: Package 'foo' requires a different Python: 3.9.0 not in '>=3.10'",
  "signature_zh": "错误：包 'foo' 需要不同的 Python 版本：3.9.0 不在 '>=3.10' 中",
  "regex": "ERROR:\\ Package\\ 'foo'\\ requires\\ a\\ different\\ Python:\\ 3\\.9\\.0\\ not\\ in\\ '>=3\\.10'",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The package's metadata specifies a minimum Python version (python_requires) that is higher than the current interpreter version. This is a hard constraint enforced by pip.",
  "root_cause_type": "generic",
  "root_cause_zh": "包的元数据指定了最低 Python 版本（python_requires），高于当前解释器版本。这是 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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Bypasses the check but the package may use syntax or features unavailable in the older Python, causing runtime failures.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Requires manual modification and repackaging; not feasible for installed packages.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.98,
      "how": "Upgrade Python to a version that satisfies the requirement (e.g., install Python 3.10+).",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.75,
      "how": "Find an older version of the package that supports your Python version: pip install 'foo<2.0' (check package release history).",
      "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": "2026-01-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}