# error: command 'gcc' failed: No such file or directory

- **ID:** `python/setuptools-cython-build-error-missing-compiler`
- **Domain:** python
- **Category:** system_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Building a package with C extensions requires a C compiler (gcc), which is not installed or not in PATH. This is common on Windows without Visual Studio Build Tools or on minimal Linux installations.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   On Linux: sudo apt-get install build-essential. On macOS: xcode-select --install. On Windows: install Microsoft Visual C++ Build Tools.
   ```
2. **** (85% success)
   ```
   Use conda to install the package, which provides pre-built binaries: conda install <package>.
   ```

## Dead Ends

- **** — If no wheel is available for the platform, pip falls back to source build and fails again. (60% fail)
- **** — Clang is not installed, so the command still fails. (90% fail)
