python config_error ai_generated true

error: python_requires='>=3.7' but the installed Python version is 3.6.9

ID: python/setuptools-python-requires-error

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

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.6 active
3.7 active
3.8 active

Root Cause

The package specifies a minimum Python version that is not satisfied by the current interpreter.

generic

中文

该包指定了当前解释器不满足的最低 Python 版本。

Workarounds

  1. 95% success Upgrade Python to a supported version
    Install Python 3.7+ from python.org or use a version manager like pyenv: `pyenv install 3.9.10 && pyenv global 3.9.10`
  2. 90% success Use a virtual environment with a compatible Python version
    `python3.7 -m venv myenv && source myenv/bin/activate && pip install package`

Dead Ends

Common approaches that don't work:

  1. Ignoring the error and forcing installation with --ignore-requires-python 90% fail

    This flag does not exist; pip will still enforce python_requires.

  2. Downgrading the package to an older version that supports Python 3.6 50% fail

    The older version may have other issues or missing features.