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

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

## Root Cause

The package specifies a python_requires constraint that excludes the current Python version.

## Version Compatibility

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

## Workarounds

1. **Use a compatible Python version** (95% success)
   ```
   Install Python 3.9 or later and create a new virtual environment.
   ```
2. **Use pyenv to switch Python versions** (90% success)
   ```
   pyenv install 3.9.0 && pyenv local 3.9.0 && pip install mypackage
   ```

## Dead Ends

- **Using --ignore-requires-python flag** — This flag does not exist; pip enforces python_requires strictly. (90% fail)
- **Downgrading the package to an older version** — Older versions may also have python_requires constraints. (70% fail)
