{
  "id": "python/pip-requires-python-mismatch",
  "signature": "ERROR: Package 'mypackage' requires a different Python: 3.8.10 not in '>=3.9'",
  "signature_zh": "错误：包 'mypackage' 需要不同的 Python：3.8.10 不在 '>=3.9' 中",
  "regex": "ERROR:\\ Package\\ 'mypackage'\\ requires\\ a\\ different\\ Python:\\ 3\\.8\\.10\\ not\\ in\\ '>=3\\.9'",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The package specifies a python_requires constraint that excludes the current Python version.",
  "root_cause_type": "generic",
  "root_cause_zh": "包指定了 python_requires 约束，排除了当前 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": "Using --ignore-requires-python flag",
      "why_fails": "This flag does not exist; pip enforces python_requires strictly.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Downgrading the package to an older version",
      "why_fails": "Older versions may also have python_requires constraints.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use a compatible Python version",
      "success_rate": 0.95,
      "how": "Install Python 3.9 or later and create a new virtual environment.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use pyenv to switch Python versions",
      "success_rate": 0.9,
      "how": "pyenv install 3.9.0 && pyenv local 3.9.0 && pip install mypackage",
      "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": "true",
  "first_seen": "2025-09-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}