# 警告：选择用于下载或安装的候选版本已被撤回：'mypkg' 候选（版本 2.0.0，位于 https://.../mypkg-2.0.0-py3-none-any.whl（来自 https://pypi.org/simple/mypkg/））
被撤回原因：<未提供>

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

## 根因

requirements.txt 中固定的版本已在 PyPI 上被撤回，但由于固定版本明确请求该确切版本，pip 仍然解析到它。

## 版本兼容性

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

## 解决方案

1. **** (98% 成功率)
   ```
   Edit requirements.txt to mypkg==2.0.1 (or >=2.0.1,<3) and re-run pip install -r requirements.txt.
   ```
2. **** (90% 成功率)
   ```
   Run pip-audit or pip index versions mypkg to list available versions and identify yanked ones.
   ```

## 无效尝试

- **** — Cache is not the reason the yanked version was selected. (90% 失败率)
- **** — Still resolves to the same yanked version. (88% 失败率)
- **** — Older pip silently installs yanked versions, hiding the problem. (80% 失败率)
