# ERROR: Error in sitecustomize; set PYTHONVERBOSE for traceback: ModuleNotFoundError: No module named 'setuptools'

- **ID:** `python/pip-egg-link-corrupt`
- **Domain:** python
- **Category:** module_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The setuptools package is missing or its .egg-link file is corrupted, often due to a partial install or manual deletion.

## Version Compatibility

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

## Workarounds

1. **** (90% success)
   ```
   python -m ensurepip --upgrade
   ```
2. **** (85% success)
   ```
   wget https://bootstrap.pypa.io/ez_setup.py -O - | python
   ```
3. **** (95% success)
   ```
   python -m venv venv && source venv/bin/activate && pip install setuptools
   ```

## Dead Ends

- **** — Pip itself may depend on setuptools. (50% fail)
- **** — May have incorrect path or permissions. (80% fail)
- **** — Many packages will fail to import. (90% fail)
