{
  "id": "python/pip-extra-index-unreachable",
  "signature": "WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x...>: Failed to establish a new connection: [Errno 111] Connection refused')'",
  "signature_zh": "警告：连接因 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x...>: Failed to establish a new connection: [Errno 111] Connection refused')' 中断，正在重试（Retry(total=4, connect=None, read=None, redirect=None, status=None)）",
  "regex": "WARNING:\\ Retrying\\ \\(Retry\\(total=4,\\ connect=None,\\ read=None,\\ redirect=None,\\ status=None\\)\\)\\ after\\ connection\\ broken\\ by\\ 'NewConnectionError\\('<pip\\._vendor\\.urllib3\\.connection\\.HTTPSConnection\\ object\\ at\\ 0x\\.\\.\\.>:\\ Failed\\ to\\ establish\\ a\\ new\\ connection:\\ \\[Errno\\ 111\\]\\ Connection\\ refused'\\)'",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "pip is configured with an extra index URL that is unreachable from the current network, causing retries before falling back.",
  "root_cause_type": "generic",
  "root_cause_zh": "pip 配置了一个在当前网络上无法访问的额外索引 URL，导致在回退前反复重试。",
  "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"
    },
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "More retries just delay the same connection failure.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The connection is refused immediately; timeout is not the issue.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "pip itself is fine; the configured index URL is the problem.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "pip config unset global.extra-index-url  # or edit ~/.config/pip/pip.conf",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "pip install --index-url https://pypi.org/simple <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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-10-21",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}