# 错误：包 'pkg' 需要不同的 Python 版本：3.7.4 不在 '>=3.8' 范围内

- **ID:** `python/pip-requires-python-not-satisfied`
- **领域:** python
- **类别:** config_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

包的 Requires-Python 元数据排除了当前 Python 版本。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.7 | active | — | — |
| 3.8 | active | — | — |
| 3.9 | active | — | — |

## 解决方案

1. **** (95% 成功率)
   ```
   python3.8 -m venv venv && source venv/bin/activate && pip install pkg
   ```
2. **** (80% 成功率)
   ```
   pip install 'pkg<2.0'
   ```

## 无效尝试

- **** — Only affects resolution for downloading; doesn't change the actual interpreter. (80% 失败率)
- **** — May break other dependencies; not a quick fix. (50% 失败率)
