{
  "id": "python/pip-yanked-version-selected",
  "signature": "WARNING: The candidate selected for download or install is a yanked version: 'mypkg' candidate (version 2.0.0 at https://.../mypkg-2.0.0-py3-none-any.whl (from https://pypi.org/simple/mypkg/))\nReason for being yanked: <none given>",
  "signature_zh": "警告：选择用于下载或安装的候选版本已被撤回：'mypkg' 候选（版本 2.0.0，位于 https://.../mypkg-2.0.0-py3-none-any.whl（来自 https://pypi.org/simple/mypkg/））\n被撤回原因：<未提供>",
  "regex": "WARNING:\\ The\\ candidate\\ selected\\ for\\ download\\ or\\ install\\ is\\ a\\ yanked\\ version:\\ 'mypkg'\\ candidate\\ \\(version\\ 2\\.0\\.0\\ at\\ https://\\.\\.\\./mypkg\\-2\\.0\\.0\\-py3\\-none\\-any\\.whl\\ \\(from\\ https://pypi\\.org/simple/mypkg/\\)\\)\\\nReason\\ for\\ being\\ yanked:\\ <none\\ given>",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "A pinned version in requirements.txt was yanked on PyPI, but pip still resolves it because the pin explicitly requests that exact version.",
  "root_cause_type": "generic",
  "root_cause_zh": "requirements.txt 中固定的版本已在 PyPI 上被撤回，但由于固定版本明确请求该确切版本，pip 仍然解析到它。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Cache is not the reason the yanked version was selected.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Still resolves to the same yanked version.",
      "fail_rate": 0.88,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Older pip silently installs yanked versions, hiding the problem.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.98,
      "how": "Edit requirements.txt to mypkg==2.0.1 (or >=2.0.1,<3) and re-run pip install -r requirements.txt.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Run pip-audit or pip index versions mypkg to list available versions and identify yanked ones.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-01-14",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}