{
  "id": "python/pip-install-error-timeout",
  "signature": "ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='pypi.org', port=443): Read timed out.",
  "signature_zh": "错误：由于 OSError：HTTPSConnectionPool(host='pypi.org', port=443)：读取超时，无法安装包。",
  "regex": "ERROR:\\ Could\\ not\\ install\\ packages\\ due\\ to\\ an\\ OSError:\\ HTTPSConnectionPool\\(host='pypi\\.org',\\ port=443\\):\\ Read\\ timed\\ out\\.",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "Network connectivity issues or a slow connection to PyPI caused the read operation to time out.",
  "root_cause_type": "generic",
  "root_cause_zh": "网络连接问题或与 PyPI 的连接速度过慢导致读取操作超时。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Transient issues may resolve, but persistent timeouts require configuration changes.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "SSL verification is not the cause of timeout.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The issue is network-related, not package-specific.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.8,
      "how": "pip install --timeout 120 package",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "pip install --index-url https://pypi.tuna.tsinghua.edu.cn/simple package",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.75,
      "how": "pip install --proxy http://user:pass@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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-11-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}