# error: invalid command 'bdist_wheel'
ERROR: Failed building wheel for foo
ERROR: Could not build wheels for foo, which is required to install pyproject.toml-based projects

- **ID:** `python/pip-missing-wheel-bdist-build`
- **Domain:** python
- **Category:** install_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The 'wheel' package is not installed in the build environment, so setuptools lacks the bdist_wheel command needed to produce a wheel. Common with --no-build-isolation or old build configs.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## Workarounds

1. **** (93% success)
   ```
   python -m pip install --upgrade pip setuptools wheel
pip install foo
   ```
2. **** (90% success)
   ```
   # pyproject.toml
[build-system]
requires = ["setuptools>=61", "wheel"]
build-backend = "setuptools.build_meta"
   ```

## Dead Ends

- **** — If wheel is absent in the current env, bdist_wheel is still missing. (60% fail)
- **** — pip version is unrelated to the missing wheel build backend command. (85% fail)
