What's new in pip 26.1 - lockfiles and dependency cooldowns!

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Python developers can now generate lockfiles with pip itself and block freshly-uploaded packages from installs, reducing supply-chain attack exposure.

Read this as

Pip, the standard tool for installing Python software packages, has released version 26.1 with two notable changes. The new 'pip lock' command records every package and version a project needs into a single file, so everyone building it gets exactly the same setup. It also adds a delay option so installations only use packages that have been publicly available for a set number of days, which protects against malicious newly published updates.

Pip 26.1 closes a gap where Python's default package installer lagged behind rivals by adding built-in lockfiles and the ability to exclude packages uploaded within a chosen number of days. This matters for risk: teams can now refuse brand-new package versions until they've been scrutinized, blunting supply-chain attacks. Organizations still relying on Python 3.9 must upgrade it first, since the release drops it. Adoption costs nothing; the tool is free.

Pip 26.1 drops Python 3.9 support (EOL since October) and adds 'pip lock', which resolved Datasette and LLM into a 519-line pylock.toml in Willison's test. The new --uploaded-prior-to PXD flag uses ISO duration format limited to days; installing llm with --uploaded-prior-to P4D resolved to 0.30 rather than the 0.31 shipped three days earlier. Testing used uv to install Python 3.14 in a venv.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

pip 26.1 Python 3.9 Python 3.14 pylock.toml LLM 0.31 Datasette macOS

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.