# KeyError: 'egg_info'

- **ID:** `python/setuptools-command-not-found-egg-info`
- **Domain:** python
- **Category:** install_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

setuptools cannot find the 'egg_info' command, typically because the package's setup.py is malformed or setuptools is not properly installed. This can occur when using a minimal Python installation.

## Version Compatibility

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

## Workarounds

1. **** (90% success)
   ```
   Ensure setuptools is installed and up to date: pip install --upgrade setuptools.
   ```
2. **** (95% success)
   ```
   Use a virtual environment with a full Python installation: python -m venv venv && source venv/bin/activate && pip install setuptools.
   ```

## Dead Ends

- **** — If egg_info is missing, develop will also fail with the same error. (85% fail)
- **** — Reinstalling doesn't fix setuptools installation issues. (80% fail)
