# 错误：找不到满足要求 some-package 的版本（可用版本：无）

- **ID:** `python/pip-installation-error-no-matching-distribution`
- **领域:** python
- **类别:** install_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

包名拼写错误、包在 PyPI 上不存在，或使用的索引中没有该包。网络问题导致无法获取包列表时也会发生。

## 版本兼容性

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

## 解决方案

1. **** (95% 成功率)
   ```
   Double-check the package name on PyPI (https://pypi.org). Use pip search (if available) or web search to find correct name.
   ```
2. **** (80% 成功率)
   ```
   If behind a proxy, set environment variables: export HTTP_PROXY=http://proxy:port and HTTPS_PROXY=https://proxy:port.
   ```

## 无效尝试

- **** — If the package name is wrong, no index will have it; if network is down, still fails. (60% 失败率)
- **** — Cache is not the issue if the package doesn't exist; clearing doesn't help. (90% 失败率)
