python
install_error
ai_generated
true
错误:忽略了以下被撤回的版本:1.2.3 错误:找不到满足要求 foo==1.2.3 的版本(可用版本:1.0.0, 1.1.0, 1.2.0)
ERROR: Ignored the following yanked versions: 1.2.3 ERROR: Could not find a version that satisfies the requirement foo==1.2.3 (from versions: 1.0.0, 1.1.0, 1.2.0)
ID: python/pip-yanked-version
80%修复率
87%置信度
0证据数
2024-05-15首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| 3.8 | active | — | — | — |
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
| 3.11 | active | — | — | — |
| 3.12 | active | — | — | — |
根因分析
特定版本由于错误或安全问题已从 PyPI 撤回。
English
The specific version was yanked from PyPI due to bugs or security issues.
解决方案
-
95% 成功率
Install a different version: `pip install foo==1.2.0` or the latest.
-
80% 成功率
If you must use the yanked version, install from a wheel file directly: `pip install foo-1.2.3-py3-none-any.whl`.
无效尝试
常见但无效的做法:
-
70% 失败
pip explicitly ignores yanked versions unless they are the only option; forcing may require pinning with `--force-reinstall` but still risky.
-
90% 失败
Yanked versions are not pre-releases; flag does not help.