# 错误：无效命令 'egg_info'

- **ID:** `python/setuptools-invalid-command-egg-info`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

构建环境中未安装 setuptools，或被不兼容的 distutils 遮蔽。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.9 | active | — | — |
| 3.10 | active | — | — |

## 解决方案

1. **** (95% 成功率)
   ```
   python -m pip install -U pip setuptools wheel
   ```
2. **** (85% 成功率)
   ```
   python -m pip install . --use-pep517
   ```

## 无效尝试

- **** — Same missing setuptools command; fails identically. (90% 失败率)
- **** — Overkill; the issue is the packaging toolchain, not the interpreter. (85% 失败率)
