# 错误：已忽略以下需要不同 Python 版本的版本：2.0.0 Requires-Python >=3.10；2.1.0 Requires-Python >=3.10
错误：找不到满足需求 mypkg 的版本（可用版本：1.9.0）

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

## 根因

该包的所有近期版本都声明 Requires-Python >=3.10，但当前解释器较旧（如 3.9），因此解析器将它们过滤掉。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.x | active | — | — |

## 解决方案

1. **** (97% 成功率)
   ```
   pyenv install 3.11.9
pyenv local 3.11.9
python -m venv .venv && source .venv/bin/activate
python -m pip install mypkg
   ```
2. **** (90% 成功率)
   ```
   python -m pip install 'mypkg==1.9.0'
   ```

## 无效尝试

- **** — Installs code that uses 3.10+ syntax (match statements, union types) and crashes at import. (90% 失败率)
- **** — Pre-releases have the same or stricter Requires-Python; the filter still applies. (85% 失败率)
