# 错误：找不到与 package==1.2.3 匹配的发行版

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

## 根因

指定的包版本在配置的索引上不可用，或者与当前 Python 版本或平台不兼容。

## 版本兼容性

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

## 解决方案

1. **** (90% 成功率)
   ```
   pip index versions package
   ```
2. **** (85% 成功率)
   ```
   pip install package==1.2.2
   ```
3. **** (80% 成功率)
   ```
   pip install --index-url https://custom.pypi.org/simple package==1.2.3
   ```

## 无效尝试

- **** — Cache is not the issue; the version truly does not exist. (90% 失败率)
- **** — Upgrading pip does not create the missing version. (95% 失败率)
- **** — Force reinstall cannot install a non-existent distribution. (95% 失败率)
