# 错误：找不到满足要求 foo==2.1.0 的版本（可用版本：无）

- **ID:** `python/pip-could-not-find-version-requirement`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

请求的包版本在配置的索引上不存在，或包名拼写错误，或索引不可达。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## 解决方案

1. **** (90% 成功率)
   ```
   Run `pip index versions foo` to list available versions, then install an existing one.
   ```
2. **** (85% 成功率)
   ```
   Check spelling and use `pip install foo` without pinning, or specify `--extra-index-url https://pypi.org/simple`.
   ```

## 无效尝试

- **** — The version genuinely does not exist; retrying does not change index contents. (95% 失败率)
- **** — pip version is unrelated to index availability. (85% 失败率)
