ERROR pip compatibility ai_generated true

ERROR: Package 'package' requires a different Python version: 3.8 not in '>=3.9'

ID: pip/requires-python-version

Also available as: JSON · Markdown
95%Fix Rate
96%Confidence
50Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
23 active

Root Cause

Package requires a newer Python version than what's currently running.

generic

Workarounds

  1. 95% success Upgrade Python to the required version or use pyenv to manage versions
    pyenv install 3.11 && pyenv local 3.11

    Sources: https://github.com/pyenv/pyenv

  2. 88% success Use an older version of the package that supports your Python: pip install 'package<2.0'
    Check the package's changelog for the last version supporting your Python

Dead Ends

Common approaches that don't work:

  1. Using --ignore-requires-python flag 75% fail

    Package may use syntax/features not available in your Python; crashes at runtime

  2. Editing the package's metadata to remove the constraint 85% fail

    Will be overwritten on next install; doesn't fix actual incompatibilities

Error Chain

Frequently confused with: