python
install_error
ai_generated
true
错误:无效命令 'bdist_wheel'
error: invalid command 'bdist_wheel'
ID: python/pip-legacy-setup-py-bdist-wheel-failed
80%修复率
87%置信度
0证据数
2024-01-22首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.x | active | — | — | — |
根因分析
构建后端(setuptools)缺少 `wheel` 包,该包提供了在 PEP 517 下构建旧式 setup.py 项目时使用的 bdist_wheel 命令。
English
The build backend (setuptools) is missing the `wheel` package, which provides the bdist_wheel command used when building legacy setup.py projects under PEP 517.
解决方案
-
97% 成功率
python -m pip install --upgrade pip setuptools wheel
-
90% 成功率
python -m pip install wheel python -m pip install --no-build-isolation .
无效尝试
常见但无效的做法:
-
70% 失败
Upgrading setuptools does not install wheel; bdist_wheel is still missing.
-
60% 失败
Disabling build isolation uses the current env, which also lacks wheel, so the same error occurs.
-
90% 失败
bdist_wheel is invoked by pip's build backend, not by setup.py directly; edits don't help.