python
install_error
ai_generated
true
WARNING: The candidate selected for download or install is a yanked version: 'foo' candidate (version 1.2.3 at https://.../foo-1.2.3-py3-none-any.whl) Reason for being yanked: broken build
ID: python/pip-yanked-version-installed
80%Fix Rate
85%Confidence
0Evidence
2024-06-18First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.9 | active | — | — | — |
| 3.10 | active | — | — | — |
| 3.11 | active | — | — | — |
| 3.12 | active | — | — | — |
Root Cause
The maintainer yanked a release on PyPI; pip still installs it if it is the only version satisfying constraints, but warns loudly.
generic中文
维护者在 PyPI 上撤回了某个发布;如果它是唯一满足约束的版本,pip 仍会安装,但会发出警告。
Workarounds
-
90% success
Pin to a non-yanked version: pip install 'foo==1.2.2' Or allow any non-yanked: pip install 'foo!=1.2.3'
-
90% success
Check available versions: pip index versions foo Then choose the latest non-yanked release.
Dead Ends
Common approaches that don't work:
-
60% fail
Upgrade only moves to a newer version if one is available; if the yanked release is the only match, the warning persists.
-
95% fail
That flag controls script location warnings, not yanked-version warnings.