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

其他格式: JSON · Markdown 中文 · English
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.

generic

解决方案

  1. 95% 成功率
    Install a different version: `pip install foo==1.2.0` or the latest.
  2. 80% 成功率
    If you must use the yanked version, install from a wheel file directly: `pip install foo-1.2.3-py3-none-any.whl`.

无效尝试

常见但无效的做法:

  1. 70% 失败

    pip explicitly ignores yanked versions unless they are the only option; forcing may require pinning with `--force-reinstall` but still risky.

  2. 90% 失败

    Yanked versions are not pre-releases; flag does not help.