# ERROR: Package 'foo' requires a different Python: 3.7.9 not in '>=3.8'

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

## Root Cause

The package's metadata specifies a requires-python constraint that is not satisfied by the current interpreter version.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   Use pyenv or conda to install Python 3.8+ and recreate the environment.
   ```
2. **** (80% success)
   ```
   pip install 'foo<2.0'  # check package release notes for compatible versions
   ```
3. **** (90% success)
   ```
   pyenv install 3.8.18 && pyenv global 3.8.18 && pip install foo
   ```

## Dead Ends

- **** — This flag is for pip's own Python requirement, not for package-specific constraints; the error persists. (85% fail)
- **** — Upgrading pip does not change the package's requires-python metadata. (90% fail)
- **** — The error is about the package itself, not its dependencies. (95% fail)
