# error: invalid command 'egg_info'

- **ID:** `python/pip-egg-info-missing-requires`
- **Domain:** python
- **Category:** install_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The setuptools package is not installed or is outdated, causing the 'egg_info' command to be unavailable during package build.

## Version Compatibility

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

## Workarounds

1. **Install or upgrade setuptools explicitly** (95% success)
   ```
   pip install --upgrade setuptools
   ```
2. **Use python -m ensurepip to bootstrap** (80% success)
   ```
   python -m ensurepip --upgrade
   ```

## Dead Ends

- **Reinstalling pip using 'pip install --upgrade pip'** — Pip upgrade does not address missing setuptools. (60% fail)
- **Manually creating an egg-info directory** — The directory structure is incomplete and doesn't fix the underlying command absence. (80% fail)
