# 错误：无效命令 'bdist_wheel'

- **ID:** `python/setuptools-command-not-found-bdist-wheel`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

wheel 包未安装，因此 setuptools 找不到 bdist_wheel 命令。现代构建前端（pip、build）会自动安装它，但直接调用 `python setup.py bdist_wheel` 不会。

## 版本兼容性

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

## 解决方案

1. **** (97% 成功率)
   ```
   pip install wheel && python setup.py bdist_wheel
   ```
2. **** (98% 成功率)
   ```
   pip install build && python -m build
   ```

## 无效尝试

- **** — Deprecated and bypasses wheel building; produces a non-portable install. (60% 失败率)
- **** — setuptools does not bundle wheel; the wheel package must be installed separately. (90% 失败率)
