python config_error ai_generated true

ERROR: Unsupported environment marker: python_version < '3.8'

ID: python/pip-environment-markers-unsupported

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

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.6 active — — —
3.7 active — — —
3.8 active — — —

Root Cause

The environment marker in the package's metadata is not recognized by the current pip version.

generic

中文

包元数据中的环境标记不被当前 pip 版本识别。

Workarounds

  1. 70% success
    pip install --upgrade pip
  2. 90% success
    python3.8 -m venv venv && source venv/bin/activate && pip install pkg

Dead Ends

Common approaches that don't work:

  1. 60% fail

    May install incompatible versions for the current Python.

  2. 50% fail

    If the marker is malformed, upgrading won't help.