python
config_error
ai_generated
true
错误:不支持的环境标记:python_version < '3.8'
ERROR: Unsupported environment marker: python_version < '3.8'
ID: python/pip-environment-markers-unsupported
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.
解决方案
-
70% 成功率
pip install --upgrade pip
-
90% 成功率
python3.8 -m venv venv && source venv/bin/activate && pip install pkg
无效尝试
常见但无效的做法:
-
60% 失败
May install incompatible versions for the current Python.
-
50% 失败
If the marker is malformed, upgrading won't help.