python config_error ai_generated true

错误:不支持的环境标记:python_version < '3.8'

ERROR: Unsupported environment marker: python_version < '3.8'

ID: python/pip-environment-markers-unsupported

其他格式: JSON · Markdown 中文 · English
80%修复率
82%置信度
0证据数
2024-08-30首次发现

版本兼容性

版本状态引入弃用备注
3.6 active
3.7 active
3.8 active

根因分析

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

English

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

generic

解决方案

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

无效尝试

常见但无效的做法:

  1. 60% 失败

    May install incompatible versions for the current Python.

  2. 50% 失败

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