# 错误：找不到满足需求 package==1.2.3 的版本（可用版本：无）
错误：找不到匹配的分发包

- **ID:** `python/pip-conflicting-extra-index-url`
- **领域:** python
- **类别:** network_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

--extra-index-url 指向不托管所请求包/版本的私有索引，且 pip 不会为该包名回退到 PyPI。

## 版本兼容性

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

## 解决方案

1. **** (88% 成功率)
   ```
   Use both indexes explicitly: pip install --index-url https://pypi.org/simple --extra-index-url https://private.example.com/simple package
   ```
2. **** (85% 成功率)
   ```
   Verify the private index hosts the version: curl -s https://private.example.com/simple/package/ | grep 1.2.3
   ```
3. **** (90% 成功率)
   ```
   Publish the missing version to the private index or pin to a version it hosts
   ```

## 无效尝试

- **** — Trusted-host only affects TLS verification; the package is simply absent from the index. (90% 失败率)
- **** — Replacing the index removes PyPI access entirely, so public deps also fail. (80% 失败率)
- **** — The package is not present in the index; retries do not change availability. (95% 失败率)
