python
install_error
ai_generated
true
错误:无效命令 'egg_info'
error: invalid command 'egg_info'
ID: python/setuptools-invalid-command-egg-info
80%修复率
88%置信度
0证据数
2024-03-30首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
根因分析
构建环境中未安装 setuptools,或被不兼容的 distutils 遮蔽。
English
setuptools not installed or shadowed by an incompatible distutils in the build environment.
解决方案
-
95% 成功率
python -m pip install -U pip setuptools wheel
-
85% 成功率
python -m pip install . --use-pep517
无效尝试
常见但无效的做法:
-
90% 失败
Same missing setuptools command; fails identically.
-
85% 失败
Overkill; the issue is the packaging toolchain, not the interpreter.