{
  "id": "pip/installation-aborted-by-user",
  "signature": "ERROR: Installation aborted by user. KeyboardInterrupt",
  "signature_zh": "错误：安装被用户中止。KeyboardInterrupt",
  "regex": "ERROR: Installation aborted by user\\. KeyboardInterrupt",
  "domain": "pip",
  "category": "system_error",
  "subcategory": null,
  "root_cause": "The user pressed Ctrl+C (or sent SIGINT) during a pip install operation, causing Python to raise a KeyboardInterrupt exception that pip handles as an abort.",
  "root_cause_type": "generic",
  "root_cause_zh": "用户在 pip install 操作期间按下了 Ctrl+C（或发送了 SIGINT），导致 Python 引发 KeyboardInterrupt 异常，pip 将其处理为中止。",
  "versions": [
    {
      "version": "pip 23.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "pip 23.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "pip 24.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The error is transient; simply re-running the command works.",
      "fail_rate": 0.1,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The abort is due to user input, not permissions; sudo does not prevent Ctrl+C.",
      "fail_rate": 0.2,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Simply re-run the pip install command. Example: pip install package",
      "success_rate": 1.0,
      "how": "Simply re-run the pip install command. Example: pip install package",
      "condition": "",
      "sources": []
    },
    {
      "action": "If the installation was taking too long and you want to avoid future aborts, consider using a timeout or running in background: timeout 300 pip install package",
      "success_rate": 0.9,
      "how": "If the installation was taking too long and you want to avoid future aborts, consider using a timeout or running in background: timeout 300 pip install package",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use pip's --no-cache-dir flag to avoid re-downloading if the abort happened during download: pip install --no-cache-dir package",
      "success_rate": 0.8,
      "how": "Use pip's --no-cache-dir flag to avoid re-downloading if the abort happened during download: pip install --no-cache-dir package",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "只需重新运行 pip install 命令。示例：pip install package",
    "如果安装时间过长且希望避免未来中止，请考虑使用超时或后台运行：timeout 300 pip install package",
    "使用 pip 的 --no-cache-dir 标志避免在中止后重新下载：pip install --no-cache-dir package"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://pip.pypa.io/en/stable/cli/pip_install/",
  "official_doc_section": null,
  "error_code": "ERROR",
  "verification_tier": "ai_generated",
  "confidence": 0.95,
  "fix_success_rate": 1.0,
  "resolvable": "true",
  "first_seen": "2023-06-01",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}