# ERROR: Could not find a version that satisfies the requirement -r base.txt (from versions: none)
ERROR: No matching distribution found for -r base.txt

- **ID:** `python/pip-recursive-requirements-loop`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A requirements file includes itself via `-r`, creating an infinite inclusion loop that pip reports as a missing package named `-r base.txt`.

## Version Compatibility

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

## Workarounds

1. **** (98% success)
   ```
   Remove the `-r base.txt` line from base.txt itself; only include base.txt from other files.
   ```
2. **** (85% success)
   ```
   pip install pipdeptree && pipdeptree --warn silence  # or use `pip-compile` which detects loops
   ```

## Dead Ends

- **** — The error is in requirements file inclusion, not dependency resolution. (95% fail)
- **** — The loop is in user configuration; pip behavior is correct. (90% fail)
- **** — Removes shared dependencies and breaks other requirements files that include it. (80% fail)
