python install_error ai_generated true

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

Also available as: JSON · Markdown · 中文
80%Fix Rate
87%Confidence
0Evidence
2024-05-15First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
3.8 active — — —
3.9 active — — —
3.10 active — — —
3.11 active — — —
3.12 active — — —

Root Cause

The specific version was yanked from PyPI due to bugs or security issues.

generic

中文

特定版本由于错误或安全问题已从 PyPI 撤回。

Workarounds

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

Dead Ends

Common approaches that don't work:

  1. 70% fail

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

  2. 90% fail

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