# ERROR: pip._vendor.urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

- **ID:** `python/pip-connection-reset-by-peer`
- **Domain:** python
- **Category:** network_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The remote server forcefully closed the TCP connection, often due to firewall, timeout, or server overload.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |

## Workarounds

1. **Use a retry mechanism with pip's --retries option** (70% success)
   ```
   Run: pip install --retries 5 package
   ```
2. **Use a different network or proxy** (80% success)
   ```
   Run: pip install --proxy http://proxy:port package
   ```

## Dead Ends

- **Increasing pip's timeout with --default-timeout** — The connection is reset, not timed out; timeout increase doesn't help. (80% fail)
- **Using a VPN to change IP** — May bypass some firewalls but not all; also adds latency. (60% fail)
