python install_error ai_generated true

错误:无效命令 'bdist_wheel'

error: invalid command 'bdist_wheel'

ID: python/setuptools-command-not-found-bdist-wheel

其他格式: JSON · Markdown 中文 · English
80%修复率
90%置信度
0证据数
2024-02-22首次发现

版本兼容性

版本状态引入弃用备注
3.8 active — — —
3.9 active — — —
3.10 active — — —
3.11 active — — —
3.12 active — — —

根因分析

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

English

The wheel package is not installed, so setuptools cannot find the bdist_wheel command. Modern build frontends (pip, build) install this automatically, but direct `python setup.py bdist_wheel` calls do not.

generic

解决方案

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

无效尝试

常见但无效的做法:

  1. 60% 失败

    Deprecated and bypasses wheel building; produces a non-portable install.

  2. 90% 失败

    setuptools does not bundle wheel; the wheel package must be installed separately.