r/Python • u/ichard26 Python Discord Staff • Jul 31 '26
News pip 26.2 - --only-deps, --no-require-hashes, venv isolation, and more!
Hello!
The pip team recently released pip 26.2. This release is quite large, with features such as:
- Support for Python 3.15
- Selecting only dependencies (
--only-deps) - Mixing hashed and non-hashable requirements via
--no-require-hashes - Experimental: venv based build isolation (
--use-feature=venv-isolation) - Faster repeated resolves by caching index simple responses
- Disable
HTTP(S)_PROXYand similar non-pip specific proxy environment variables via--no-proxy-env - Separation between regular and build constraint (use
--build-constraintinstead)
For more details, please consult our changelog: https://pip.pypa.io/en/stable/news/. Alternatively, you may consult my release post which goes into greater detail to the highlights of this release: https://sichard.ca/blog/2026/07/whats-new-in-pip-26.2/
If you have any questions, you're welcome to ask!
138
Upvotes
114
u/zurtex Jul 31 '26 edited Jul 31 '26 •
I know a lot of people who follow Python and Python packaging likely use uv now.
But, there's basically no downside to us continuing to improve pip, it's still bundled with CPython, widely available, and commonly used. And there are edge cases where pip is preferable over uv.
I also think with lock files (in pip now but still experimental), and likely future command pip sync, we can offer very basic project management support that will be good enough for many users.
I'm continuing to work on performance, in particular my main focus is speeding up basic operations in packaging (https://github.com/pypa/packaging - one of our vendored dependencies that handles low level stuff) and developing a new dependencies resolver to handle more complicated resolves (https://github.com/notatallshaw/nab - hopefully a future vendored dependency). In fact I'm already taking some of my findings to uv: https://github.com/astral-sh/uv/pull/20804
I want to thank ichard26 (Richard) for being the release manager for 26.2 and all round superstar making some progress on some long time difficult problems (such as better build isolation).
31
u/Justist Jul 31 '26
I am happy pip still continues to be developed. While uv is better, new owners may always cause a product to just disappear at some point, and pip is basically the second best (no sources).
51
u/flying-sheep Jul 31 '26
Sick! I requested
--only-deps4 years ago and now it’s there!8
u/Ivan171 Jul 31 '26
Is pip still leaving unused dependencies behind when uninstalling packages?
11
u/bacondota Jul 31 '26
People saying that they don't use pip. Do you use uv in production? Like do you have uv on your docker?
19
u/cointoss3 Jul 31 '26
I forget pip is even a thing anymore. I haven’t used it in what feels like forever.
-18
u/[deleted] Jul 31 '26
[removed] — view removed comment