{
  "id": "python/pip-connection-reset-by-peer",
  "signature": "ERROR: pip._vendor.urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))",
  "signature_zh": "错误：pip._vendor.urllib3.exceptions.ProtocolError：（'连接中止。'，ConnectionResetError(104, '对端重置连接')）",
  "regex": "ERROR:\\ pip\\._vendor\\.urllib3\\.exceptions\\.ProtocolError:\\ \\('Connection\\ aborted\\.',\\ ConnectionResetError\\(104,\\ 'Connection\\ reset\\ by\\ peer'\\)\\)",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The remote server forcefully closed the TCP connection, often due to firewall, timeout, or server overload.",
  "root_cause_type": "generic",
  "root_cause_zh": "远程服务器强制关闭 TCP 连接，通常由于防火墙、超时或服务器过载。",
  "versions": [
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Increasing pip's timeout with --default-timeout",
      "why_fails": "The connection is reset, not timed out; timeout increase doesn't help.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using a VPN to change IP",
      "why_fails": "May bypass some firewalls but not all; also adds latency.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use a retry mechanism with pip's --retries option",
      "success_rate": 0.7,
      "how": "Run: pip install --retries 5 package",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a different network or proxy",
      "success_rate": 0.8,
      "how": "Run: pip install --proxy http://proxy:port package",
      "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": "partial",
  "first_seen": "2025-10-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}