# 错误：无效命令 'bdist_wheel'

- **ID:** `python/pip-legacy-setup-py-bdist-wheel-failed`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

构建后端（setuptools）缺少 `wheel` 包，该包提供了在 PEP 517 下构建旧式 setup.py 项目时使用的 bdist_wheel 命令。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.x | active | — | — |

## 解决方案

1. **** (97% 成功率)
   ```
   python -m pip install --upgrade pip setuptools wheel
   ```
2. **** (90% 成功率)
   ```
   python -m pip install wheel
python -m pip install --no-build-isolation .
   ```

## 无效尝试

- **** — Upgrading setuptools does not install wheel; bdist_wheel is still missing. (70% 失败率)
- **** — Disabling build isolation uses the current env, which also lacks wheel, so the same error occurs. (60% 失败率)
- **** — bdist_wheel is invoked by pip's build backend, not by setup.py directly; edits don't help. (90% 失败率)
