{
  "id": "python/pip-invalid-requires-python",
  "signature": "ERROR: Package 'example-pkg' requires a different Python: 3.9.2 not in '>=3.10,<3.13'",
  "signature_zh": "错误：包 'example-pkg' 需要不同的 Python 版本：3.9.2 不在 '>=3.10,<3.13' 范围内",
  "regex": "ERROR:\\ Package\\ 'example\\-pkg'\\ requires\\ a\\ different\\ Python:\\ 3\\.9\\.2\\ not\\ in\\ '>=3\\.10,<3\\.13'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The package's metadata specifies a Python version range incompatible with the current interpreter.",
  "root_cause_type": "generic",
  "root_cause_zh": "包的元数据指定的 Python 版本范围与当前解释器不兼容。",
  "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": "Bypasses the check but often leads to runtime errors or import failures due to missing features/syntax.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Pip version doesn't affect the package's declared requirement; the incompatibility remains.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Violates package integrity; pip may still validate against the original metadata from the index.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "python3.10 -m venv venv && source venv/bin/activate && pip install example-pkg",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "pip install 'example-pkg<2.0' --python-version 3.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.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-03-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}