# ERROR: Could not install packages due to an OSError: [Errno 1] _ssl.c:510: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

- **ID:** `python/pip-tls-ssl-error`
- **Domain:** python
- **Category:** network_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The system's OpenSSL version is outdated or misconfigured, causing TLS handshake failures.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## Workarounds

1. **Upgrade OpenSSL on the system** (85% success)
   ```
   sudo apt-get update && sudo apt-get install --only-upgrade openssl (Debian/Ubuntu) or brew upgrade openssl (macOS)
   ```
2. **Use a Python version compiled with a newer OpenSSL** (90% success)
   ```
   Install Python 3.11 or later from python.org which bundles OpenSSL 1.1.1+
   ```

## Dead Ends

- **Using pip install with --trusted-host** — This bypasses certificate validation but does not fix the SSL version mismatch. (70% fail)
- **Reinstalling Python without updating OpenSSL** — The issue is at the system level, not Python itself. (80% fail)
