{
  "id": "python/pip-index-url-connection-timeout",
  "signature": "WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x...>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/requests/",
  "signature_zh": "警告：连接被 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x...>，'连接到 pypi.org 超时。（连接超时=15）')' 中断后重试（Retry(total=4, ...)）：/simple/requests/",
  "regex": "WARNING:\\ Retrying\\ \\(Retry\\(total=4,\\ connect=None,\\ read=None,\\ redirect=None,\\ status=None\\)\\)\\ after\\ connection\\ broken\\ by\\ 'ConnectTimeoutError\\(<pip\\._vendor\\.urllib3\\.connection\\.HTTPSConnection\\ object\\ at\\ 0x\\.\\.\\.>,\\ 'Connection\\ to\\ pypi\\.org\\ timed\\ out\\.\\ \\(connect\\ timeout=15\\)'\\)':\\ /simple/requests/",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "Network egress to pypi.org is blocked or slow (firewall, VPN, DNS), so each connection attempt times out before the HTTP handshake completes.",
  "root_cause_type": "generic",
  "root_cause_zh": "到 pypi.org 的网络出口被阻止或较慢（防火墙、VPN、DNS），因此每次连接尝试在 HTTP 握手完成前就超时。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "If the host is unreachable, a longer timeout just makes the failure slower.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "More retries on a blocked route amplify the delay without success.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.92,
      "how": "export PIP_INDEX_URL=https://mirror.corp.example/simple\nexport PIP_TRUSTED_HOST=mirror.corp.example\npython -m pip install requests",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.88,
      "how": "export HTTPS_PROXY=http://proxy.corp.example:3128\nexport HTTP_PROXY=http://proxy.corp.example:3128\npython -m pip install requests",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-02-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}