Toolkit: pipx, pip-tools & PDM
uv and Poetry get most of this course's attention, but you'll meet other tools in real codebases, and several of them did things first. This page is a map: what each tool is for, what it looks like, and what its uv/Poetry equivalent is.
At a glance
| Tool | Job | Typical commands | Modern equivalent |
|---|---|---|---|
| pipx | install Python CLIs, each in its own venv | pipx install black, pipx run cowsay hi, pipx upgrade-all |
uv tool install, uvx |
| pip-tools | compile loose requirements into pinned, hashed ones; sync envs | pip-compile requirements.in, pip-sync requirements.txt |
uv pip compile, uv pip sync |
| PDM | project manager (PEP 621 first), lockfile, scripts | pdm init, pdm add, pdm install, pdm run, pdm publish |
Poetry, uv |
| Pipenv | early app-focused manager with Pipfile + Pipfile.lock |
pipenv install requests, pipenv run |
uv, Poetry |
| pyenv | install and switch many CPython versions | pyenv install 3.13, pyenv local 3.12 |
uv python install, uv python pin |
| conda / mamba / pixi | cross-language binary packages (CUDA, GDAL, R…) from conda-forge | conda env create -f environment.yml, pixi add numpy |
(a different ecosystem) |
| pip itself | the reference installer, now with pip lock |
pip lock -r requirements.txt |
uv pip |
pipx
pipx pioneered the "one venv per application" idea that uv tool copied:
pipx install httpie # ~/.local/share/pipx/venvs/httpie, `http` linked into ~/.local/bin
pipx inject httpie httpie-jwt-auth # add a plugin to that tool's venv
pipx run --spec cookiecutter cookiecutter gh:org/template # run once, cached
pipx list
pipx upgrade-allIt's pip-based, so it's slower than uv, but it's packaged by most Linux distributions (apt install pipx), which makes it the usual answer to the PEP 668 "externally managed" error for end-user tools.
pip-tools
pip-tools (pip-compile, pip-sync) introduced the requirements.in → requirements.txt workflow that this course ran with uv pip compile in uv pip & uv venv. The files it produces are identical in spirit: every package pinned with ==, a # via comment for each, and hashes with --generate-hashes. Teams that can't add uv still use it, and a requirements.txt produced by either tool installs with plain pip.
pip's own lockfile: pylock.toml
PEP 751 (2025) finally standardised a lockfile format, pylock.toml, so lockfiles are no longer tool-specific. pip can write one (experimental), uv can export one from uv.lock and install one:
python3 -m venv .venv
echo 'requests==2.31.0' > requirements.txt
.venv/bin/pip lock -q -r requirements.txt -o pylock.toml 2>&1
sed -n '1,13p' pylock.toml
grep -c '^\[\[packages\]\]' pylock.toml
echo "=== install it with uv"
uv venv -q env2
uv pip install --python env2 -r pylock.toml 2>&1 | grep '^ +'WARNING: pip lock is currently an experimental command. It may be removed/changed in a future release without prior warning.
lock-version = "1.0"
created-by = "pip"
[[packages]]
name = "certifi"
version = "2026.10.23"
[[packages.wheels]]
name = "certifi-2026.10.23-py3-none-any.whl"
url = "http://127.0.0.1:8080/packages/certifi-2026.10.23-py3-none-any.whl"
[packages.wheels.hashes]
sha256 = "e9b54de76e530bb6cf0ccd036787103acb58fd42ba930ea8bf948ddbaa2f61d1"
5
=== install it with uv
+ certifi==2026.10.23
+ charset-normalizer==3.5.2
+ idna==3.20
+ requests==2.31.0
+ urllib3==2.8.0
Each package lists the exact file URL and its hash, so an installer doesn't need to resolve anything: it downloads, verifies and unpacks. Expect Poetry, PDM and cloud build services to read and write pylock.toml over the next few years.
PDM
PDM was one of the first managers to use the PEP 621 [project] table and offers a choice of backends (pdm-backend by default, or setuptools/hatchling/flit). A PDM project looks like any other PEP 621 project plus a [tool.pdm] table:
[project]
name = "tadcalc"
version = "0.1.0"
requires-python = ">=3.13"
dependencies = ["attrs>=24"]
[dependency-groups]
test = ["pytest>=9"]
[tool.pdm.scripts]
test = "pytest -q" # `pdm run test`
lint = "ruff check ."
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"pdm lock writes pdm.lock, pdm install syncs, pdm run test runs a named script (a feature uv doesn't have; uv users reach for a Makefile, just or nox). PDM can also use uv as its resolver and installer (pdm config use_uv true).
Which to pick for a new project
- Applications and libraries, one tool for everything: uv. Poetry if your team already standardised on it; both are well supported.
- Only CLIs on your machine:
uv toolor pipx. - A legacy
requirements.txtproject you can't restructure:uv pip compile(or pip-tools), keep the files. - Native, non-Python dependencies (CUDA, GDAL, compilers): conda-forge via pixi or conda/mamba.
Test yourself
Which tool's job is closest to uv tool install?
- pip-tools
- pipx
- PDM
- pyenv
What does PEP 751's pylock.toml standardise?
- Build backends
- A tool-independent lockfile format with exact files and hashes
- Version specifiers
- Wheel tags