python install_error ai_generated true

ERROR: Ignored the following versions that require a different python version: 2.0.0 Requires-Python >=3.10; 2.1.0 Requires-Python >=3.10 ERROR: Could not find a version that satisfies the requirement mypkg (from versions: 1.9.0)

ID: python/pip-requires-python-incompatible

Also available as: JSON · Markdown · 中文
80%Fix Rate
88%Confidence
0Evidence
2024-06-09First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.x active

Root Cause

All recent releases of the package declare Requires-Python >=3.10, but the current interpreter is older (e.g., 3.9), so the resolver filters them out.

generic

中文

该包的所有近期版本都声明 Requires-Python >=3.10,但当前解释器较旧(如 3.9),因此解析器将它们过滤掉。

Workarounds

  1. 97% success
    pyenv install 3.11.9
    pyenv local 3.11.9
    python -m venv .venv && source .venv/bin/activate
    python -m pip install mypkg
  2. 90% success
    python -m pip install 'mypkg==1.9.0'

Dead Ends

Common approaches that don't work:

  1. 90% fail

    Installs code that uses 3.10+ syntax (match statements, union types) and crashes at import.

  2. 85% fail

    Pre-releases have the same or stricter Requires-Python; the filter still applies.