# ERROR: Package 'foo' requires a different Python: 3.8.10 not in '>=3.9'

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

## Root Cause

The package's metadata declares a Python version range that excludes the current interpreter.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   pyenv install 3.11.9 && pyenv local 3.11.9
python -m pip install foo
   ```
2. **** (80% success)
   ```
   python -m pip install "foo<2.0"  # choose a version supporting 3.8
   ```

## Dead Ends

- **** — May install code using syntax/features unavailable on the running interpreter, causing runtime crashes. (65% fail)
- **** — Old pip still enforces metadata and may break other packages. (55% fail)
