r/Python • u/ichard26 Python Discord Staff • Apr 27 '26
News pip 26.1: experimental support for installing lockfiles + dependency cooldowns!
Hey all,
I'm one of the maintainers of pip. Earlier yesterday, we released pip 26.1.
The main new feature is experimental support for pylock.toml files (PEP 751) as a requirements source. pylock.toml files or URLs can be provided with the -r / --requirements options to the commands supporting it.
pip install -r pylock.toml
pip wheel -r pylock.toml
pip download -r pylock.tomlNote*: As conveyed by the experimental warning, keep in mind this feature may evolve significantly or even be removed in favor of another option or command in future pip releases.*
Other notable improvements include:
- Allow
--uploaded-prior-toto accept a duration in days (e.g.,P7Dfor 7 days ago) to support "Dependency cooldowns", a strategy of intentionally delaying package updates to give security researchers and package authors time to recover from (ever-increasing) supply chain attacks. See also William Woodruff's "We should all be using dependency cooldowns" - Allow unpinned requirements to use hashes from constraints and allow URL constraints to apply to requirements with extras, removing some of the last roadblocks towards the removal of the legacy resolver
- Several performance and memory usage improvements to dependency resolution
- And of course several bug fixes and security fixes
Please consult our changelog for more information.
You can also consult my (unofficially official) release blog post for pip 26.1, which discusses the highlights from the release in greater detail: https://ichard26.github.io/blog/2026/04/whats-new-in-pip-26.1/
Many thanks goes to Stéphane, Damian, Pradyun and Paul who all chipped in a significant way to this release. Doubly so to Stéphane who upstreamed support for pylock.toml to the packaging library AND added pylock.toml support to pip.
Enjoy the new features! We welcome your feedback in the issue tracker.
View all comments
Show parent comment
10
u/Competitive_Travel16 Apr 28 '26
uv feels to me like giving up too much direct control. How do I know whether or not it will be available in a client deployment? And if it isn't, do I want to ask them them to go through a uv install? In both cases, I do not. pip is there for me on all the python...-slim docker images, and easy to upgrade to get it to jump through all these cool new hoops without giving up assumptions that uv involves.