python config_error ai_generated true

ERROR: Package 'pkg' requires a different Python: 3.7.4 not in '>=3.8'

ID: python/pip-requires-python-not-satisfied

Also available as: JSON · Markdown · 中文
80%Fix Rate
87%Confidence
0Evidence
2024-03-28First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.7 active
3.8 active
3.9 active

Root Cause

The package's Requires-Python metadata excludes the current Python version.

generic

中文

包的 Requires-Python 元数据排除了当前 Python 版本。

Workarounds

  1. 95% success
    python3.8 -m venv venv && source venv/bin/activate && pip install pkg
  2. 80% success
    pip install 'pkg<2.0'

Dead Ends

Common approaches that don't work:

  1. 80% fail

    Only affects resolution for downloading; doesn't change the actual interpreter.

  2. 50% fail

    May break other dependencies; not a quick fix.