{
  "id": "python/pip-setup-py-bdist-wheel-no-command",
  "signature": "error: invalid command 'bdist_wheel'",
  "signature_zh": "错误：无效命令 'bdist_wheel'",
  "regex": "error:\\ invalid\\ command\\ 'bdist_wheel'",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The wheel package is missing from the build environment, so setuptools cannot register the bdist_wheel command when building a wheel.",
  "root_cause_type": "generic",
  "root_cause_zh": "构建环境中缺少 wheel 包，因此 setuptools 在构建 wheel 时无法注册 bdist_wheel 命令。",
  "versions": [
    {
      "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"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "wheel is a separate distribution; upgrading setuptools alone does not provide bdist_wheel.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Installs in legacy mode without producing a wheel; also deprecated and may fail on 3.12.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "pip install --upgrade wheel setuptools\npython setup.py bdist_wheel",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "pip install build\npython -m build\n# produces dist/*.whl and dist/*.tar.gz",
      "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.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-19",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}