# ERROR: Failed building wheel for mypackage
  error: command 'cmake' failed: No such file or directory

- **ID:** `python/pip-wheel-building-failure`
- **Domain:** python
- **Category:** system_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The package requires a build tool (like cmake) that is not installed on the system.

## Version Compatibility

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

## Workarounds

1. **Install cmake and ensure it is in PATH** (90% success)
   ```
   On Ubuntu: `sudo apt-get install cmake`. On macOS: `brew install cmake`. Verify with `cmake --version`.
   ```
2. **Use a pre-built wheel from PyPI or a third-party index** (75% success)
   ```
   `pip install --only-binary=:all: mypackage` or download a .whl file and install with `pip install mypackage.whl`
   ```

## Dead Ends

- **Installing cmake but not adding it to PATH** — pip cannot find the cmake executable if it's not in PATH. (50% fail)
- **Using --no-build-isolation to use system-installed cmake** — If cmake is not installed at all, this flag does not help. (80% fail)
