{
  "id": "python/pip-requires-python-unsatisfied",
  "signature": "ERROR: Ignored the following versions that require a different python version: 5.0.0 Requires-Python >=3.11\nERROR: Could not find a version that satisfies the requirement somepkg (from versions: 4.9.0, 4.9.1)\nERROR: No matching distribution found for somepkg",
  "signature_zh": "错误：已忽略以下需要不同 Python 版本的版本：5.0.0 要求 Python >=3.11\n错误：找不到满足 somepkg 要求的版本（可用版本：4.9.0, 4.9.1）\n错误：未找到匹配的分发版本",
  "regex": "ERROR:\\ Ignored\\ the\\ following\\ versions\\ that\\ require\\ a\\ different\\ python\\ version:\\ 5\\.0\\.0\\ Requires\\-Python\\ >=3\\.11\\\nERROR:\\ Could\\ not\\ find\\ a\\ version\\ that\\ satisfies\\ the\\ requirement\\ somepkg\\ \\(from\\ versions:\\ 4\\.9\\.0,\\ 4\\.9\\.1\\)\\\nERROR:\\ No\\ matching\\ distribution\\ found\\ for\\ somepkg",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The requested package version declares Requires-Python >=3.11 in its metadata, but the running interpreter is older (e.g. 3.9), so pip filters it out and reports no matching distribution.",
  "root_cause_type": "generic",
  "root_cause_zh": "请求的包版本在其元数据中声明 Requires-Python >=3.11，但正在运行的解释器版本较旧（例如 3.9），因此 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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "--pre only enables pre-release versions; the Requires-Python filter still applies.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "pip has no --ignore-requires-python flag; the option is unrecognized and the command errors out.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "python --version\npip install 'somepkg<5'",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "# using pyenv\npyenv install 3.11.9\npyenv local 3.11.9\npython -m venv .venv && source .venv/bin/activate\npip install somepkg",
      "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.89,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-02-21",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}