{
  "id": "python/pip-tls-ssl-error",
  "signature": "ERROR: Could not install packages due to an OSError: [Errno 1] _ssl.c:510: error:1408F10B:SSL routines:ssl3_get_record:wrong version number",
  "signature_zh": "错误：由于 OSError 无法安装包：[Errno 1] _ssl.c:510: error:1408F10B:SSL routines:ssl3_get_record:wrong version number",
  "regex": "ERROR:\\ Could\\ not\\ install\\ packages\\ due\\ to\\ an\\ OSError:\\ \\[Errno\\ 1\\]\\ _ssl\\.c:510:\\ error:1408F10B:SSL\\ routines:ssl3_get_record:wrong\\ version\\ number",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The system's OpenSSL version is outdated or misconfigured, causing TLS handshake failures.",
  "root_cause_type": "generic",
  "root_cause_zh": "系统 OpenSSL 版本过旧或配置错误，导致 TLS 握手失败。",
  "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": "Using pip install with --trusted-host",
      "why_fails": "This bypasses certificate validation but does not fix the SSL version mismatch.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Reinstalling Python without updating OpenSSL",
      "why_fails": "The issue is at the system level, not Python itself.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Upgrade OpenSSL on the system",
      "success_rate": 0.85,
      "how": "sudo apt-get update && sudo apt-get install --only-upgrade openssl (Debian/Ubuntu) or brew upgrade openssl (macOS)",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a Python version compiled with a newer OpenSSL",
      "success_rate": 0.9,
      "how": "Install Python 3.11 or later from python.org which bundles OpenSSL 1.1.1+",
      "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": "true",
  "first_seen": "2024-10-03",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}