{
  "id": "python/setuptools-invalid-command-bdist-wheel",
  "signature": "usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]\n   or: setup.py --help [cmd1 cmd2 ...]\n   or: setup.py --help-commands\n   or: setup.py cmd --help\n\nerror: invalid command 'bdist_wheel'",
  "signature_zh": "用法：setup.py [全局选项] 命令1 [命令1选项] ...\n错误：无效命令 'bdist_wheel'",
  "regex": "usage:\\ setup\\.py\\ \\[global_opts\\]\\ cmd1\\ \\[cmd1_opts\\]\\ \\[cmd2\\ \\[cmd2_opts\\]\\ \\.\\.\\.\\]\\\n\\ \\ \\ or:\\ setup\\.py\\ \\-\\-help\\ \\[cmd1\\ cmd2\\ \\.\\.\\.\\]\\\n\\ \\ \\ or:\\ setup\\.py\\ \\-\\-help\\-commands\\\n\\ \\ \\ or:\\ setup\\.py\\ cmd\\ \\-\\-help\\\n\\\nerror:\\ invalid\\ command\\ 'bdist_wheel'",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The `wheel` package is not installed in the build environment, so setuptools does not register the `bdist_wheel` command used to build wheels.",
  "root_cause_type": "generic",
  "root_cause_zh": "构建环境中未安装 `wheel` 包，因此 setuptools 未注册用于构建 wheel 的 `bdist_wheel` 命令。",
  "versions": [
    {
      "version": "3.7",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Bypasses the wheel build but installs an unmanaged egg and often fails on modern pip/setuptools.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Still requires bdist_wheel and does not install the missing wheel package.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Install wheel into the build environment: `pip install wheel` (or `pip install --upgrade setuptools wheel`), then retry the build.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Use `python -m build` which manages build dependencies via pyproject.toml's `[build-system] requires`.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.89,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-02-08",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}