python
network_error
ai_generated
partial
WARNING: Retrying (Retry(total=4, ...)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/numpy/
ID: python/pip-download-failed-connection-reset
80%Fix Rate
84%Confidence
0Evidence
2024-07-30First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3.x | active | — | — | — |
Root Cause
A network middlebox, proxy, or rate limiter is resetting the TCP connection during large index downloads.
generic中文
网络中间件、代理或限流器在大型索引下载期间重置了 TCP 连接。
Workarounds
-
85% success
pip install --retries 10 --timeout 60 --index-url https://pypi.tuna.tsinghua.edu.cn/simple numpy
-
90% success
curl -L -O https://files.pythonhosted.org/packages/.../numpy-2.1.0-cp311-cp311-manylinux_2_17_x86_64.whl pip install ./numpy-2.1.0-cp311-cp311-manylinux_2_17_x86_64.whl
Dead Ends
Common approaches that don't work:
-
80% fail
Disabling the cache does not prevent the connection reset.
-
95% fail
Reducing retries makes the failure immediate rather than fixing the network issue.
-
90% fail
Lowering the timeout causes more timeouts and does not address the reset.