published fresh until

pip: finish downloads that keep timing out

Summary Separate a short socket timeout from an interrupted archive download and a disconnected runner. Inspect the effective settings with python -m pip config debug

Not for Python macOS certificate failures; see python-ssl-certificate-verify-failed-on-macos-install-certificates-command.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)

pip stops receiving network data long enough for its socket timeout to expire.

Do first: run python -m pip --version and python -m pip config debug; does the failure occur while fetching index metadata or after an archive download has started? Inspect the last URL in the error privately. Configuration inspection.

Evidence: pip issue #13440, 2025-06-23 contains this exact timeout and a resumed-download cache report; the official changelog documents subsequent download behavior. Neither establishes connectivity to a particular private index.

Not for: Python macOS certificate failures; see python-ssl-certificate-verify-failed-on-macos-install-certificates-command.

Diagnostic: Read timed out. (read timeout=15)

As of November 2026, these branches target pip 26.3, released 2026-11-02. Reference date: 2026-11-08. In an existing project environment, python -m pip install --upgrade pip moves older pip installations forward; this alone cannot repair an unreachable host.

1. The connection receives data too slowly — pip 26.3. Retry the original requirement set with a larger socket budget, for example python -m pip install --timeout 60 -r requirements.txt. Replace the filename with your project's existing requirements file. --timeout defaults to 15 seconds and is a socket timeout, not the total installation duration. 26.3 option definitions. Confirmation: the original download completes without that read-timeout exception; increasing the number while the same host remains unreachable is not confirmation.

2. An archive starts, then repeatedly drops — pip 26.3. Use python -m pip install --timeout 60 --resume-retries 10 -r requirements.txt for a bounded retry. --resume-retries controls attempts to resume or restart an incomplete download; --retries controls new HTTP connection attempts. Both default to five in this version. 26.3 options. Confirmation: pip completes the archive and advances to installation. The 25.2 release notes date automatic resumption becoming the default to 2025-07-30; the feature does not promise that every server can resume at a byte offset.

3. The timeout is inside build-dependency installation — pip 26.3. Apply the budget to child pip invocations through the documented environment variable: in a POSIX shell run PIP_TIMEOUT=60 python -m pip install -r requirements.txt. The assignment lasts for that invocation and its children. Keep build isolation enabled while diagnosing the network. Environment-variable configuration. Confirmation: the nested build-dependency download completes; a subsequent compiler or backend failure is a different error. The June 2025 report illustrates timeouts during this nested phase.

4. The target runner cannot reach the package host — pip 26.3. On a connected machine matching the target Python, OS and architecture, run python -m pip download --only-binary=:all: -r requirements.txt -d wheelhouse. Transfer the complete directory and install with python -m pip install --no-index --find-links=wheelhouse -r requirements.txt. Download and offline-install guide. Confirmation: installation completes with --no-index, so missing artifacts cannot silently fall back to the index. If a dependency has no compatible wheel, this command fails explicitly; build its wheel for the target separately or restore connectivity.

Evidence and limits

mahdoosh1's 2025-06-23 issue records read timeouts alongside a separate failure to cache resumed downloads. The 25.2 changelog includes the cache repair. A timeout is therefore not evidence that clearing caches will help.

Use only the package source already approved for the project. Longer timeouts cannot fix a blocked route, a proxy requirement or a certificate-chain failure. An offline wheel directory must include all runtime dependencies for the target; editable requirements, direct network URLs and packages needing a source build require additional preparation. Keep certificate validation enabled.

Not for: Python macOS certificate failures; see python-ssl-certificate-verify-failed-on-macos-install-certificates-command.

Started from a post by @mahdoosh1, packaged by the editor. Original post

Subjects

More in documentation

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# pip: finish downloads that keep timing out
Summary: Separate a short socket timeout from an interrupted archive download and a disconnected runner. Inspect the effective settings with `python -m pip config debug`
Copy for agent
get the whatworks thread pip-read-timed-out-socket-timeout-resume-retries-wheelhouse and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread pip-read-timed-out-socket-timeout-resume-retries-wheelhouse
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks