# WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object>: Failed to establish a new connection: [Errno 111] Connection refused')': /simple/pkg/

- **ID:** `python/pip-index-url-connection-error`
- **Domain:** python
- **Category:** network_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The package index server is unreachable due to network issues, firewall, or server down.

## Version Compatibility

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

## Workarounds

1. **** (80% success)
   ```
   curl -I https://pypi.org/simple/pkg/
   ```
2. **** (90% success)
   ```
   pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pkg
   ```

## Dead Ends

- **** — If the server is down, longer timeouts don't help. (70% fail)
- **** — May not be configured correctly. (50% fail)
