Poetry vs uv vs Hatch: Which Python Packaging Tool in 2026

A head-to-head comparison of Poetry, uv, and Hatch — speed, lockfile behavior, and PEP 621 compliance, for picking a new project’s tooling

Our packaging tools guide covers pip, Poetry, uv, and Hatch broadly. This is the narrower question people actually search for once they’ve ruled out pip: picking between the three real project-management contenders.

Speed: uv is fastest, by the most when the cache is warm

This is uv’s main pitch, and it holds up, with a caveat about where the gap shows. The same seven packages (Django, FastAPI, httpx, SQLAlchemy, Pydantic, requests and rich) were installed with each tool on one Apple silicon Mac, with Python 3.13, uv 0.13.8, Poetry 2.5.1 and Hatch 1.18.2:

uv Poetry Hatch
Install from a lockfile, cache warm 0.7 s 4.3 s about 8 s (no lockfile; resolves with pip)
Install from a lockfile, cold cache 14.1 s 17.2 s about 49 s (no lockfile)
Resolve, lock and install from scratch, cold cache 24.0 s 25.6 s not applicable

So uv was about six times faster than Poetry when the packages were already cached, which is what you notice in everyday work: fresh clones, CI with a cache, Docker rebuilds. On a cold run the two were close, because downloading dominates and neither tool can speed up the network. Hatch, written in Python and using pip by default, was the slowest. Hatch can use uv as its installer (installer = "uv" on the environment), and doing so brought the same environment down to 2.9 seconds on a first run and 1.1 on a repeat. Your numbers will differ with your network and project, so treat these as a rough guide, not a benchmark.

Lockfiles: all three can lock, with different defaults

  • Poetry uses poetry.lock, mature and stable, resolved by Poetry’s own resolver.
  • uv uses uv.lock, resolved by uv’s Rust resolver, the same one behind the speed advantage. uv is still pre-1.0 (0.13.8 on 12 November 2026), and the lockfile records its own format version at the top (version = 1, revision = 5 in a test project).
  • Hatch did not lock dependencies for most of its history, but since version 1.17.0 (31 May 2026) it can. Set locked = true on an environment and Hatch writes a pylock.toml, the standard lockfile format from PEP 751. It is off by default, and the locker follows the installer: uv when Hatch uses uv, otherwise pip. In a test with locked = true, creating the environment wrote a pylock.toml listing 26 packages for the seven direct dependencies. Hatch’s docs note that applying a lockfile with hatch dep sync needs the uv locker.

If you want reproducible installs with no setup, Poetry and uv give you that immediately. Hatch needs one setting, and its lockfile is a newer, standard format rather than a tool-specific one.

PEP 621 compliance

PEP 621 standardized how project metadata is declared in the [project] table of pyproject.toml. Hatch was built around it from the start. It is developed under the Python Packaging Authority’s GitHub organisation, and the PyPA’s tool recommendations list hatch among several workflow tools (alongside flit, nox, pdm, Pipenv, poetry and tox) and hatchling as one of four recommended build backends, so it is a recommended option rather than the single endorsed one. uv supports standard pyproject.toml metadata and interoperates cleanly. Poetry historically used its own [tool.poetry] section, but Poetry 2.0.0 (5 January 2025) added support for the standard [project] table, so that difference has largely gone. Check which section an existing Poetry project uses before assuming either.

Publishing to PyPI

All three can build and publish packages: uv build and uv publish, poetry publish, and hatch publish. Hatch’s publishing workflow is the most polished of the three specifically because packaging (not just dependency management) is its core focus — plugin-based builds, version bumping, and environment matrices for testing across Python versions are first-class features. Poetry and uv both handle straightforward publish workflows well but are less oriented toward complex multi-environment build matrices.

Which one for a new project

  • Fastest iteration, simplest mental model, most momentum right now → uv
  • Already comfortable with Poetry, no specific speed complaint → stay on Poetry, no urgent reason to migrate
  • PyPA-standard alignment matters, or you’re building a library with a real publishing/testing matrix → Hatch

There’s no wrong answer among the three for most projects — the actual cost of switching later is a pyproject.toml edit and a re-lock, not a rewrite.

What about plain pip, or conda?

Plain pip isn’t a peer to any of these three — it installs packages and nothing else, with no built-in lock file or virtual environment management, which is exactly why Poetry, uv, and Hatch exist. Conda is a different case: it’s a general-purpose package and environment manager that also handles non-Python dependencies such as compiled C libraries. That used to be the main reason data scientists chose it for GPU work, but it matters less now: PyPI carries NVIDIA’s CUDA runtime and compiler as wheels (nvidia-cuda-runtime-cu12 and nvidia-cuda-nvcc-cu12), and PyTorch 2.15.0 pulls its CUDA libraries in as ordinary dependencies, so uv or Poetry can install a GPU stack. Reach for conda when you need native software that isn’t packaged as wheels, or one tool that pins a whole toolchain. For a typical web or CLI project with only Python dependencies, it’s unnecessary overhead.

Frequently Asked Questions

Is uv faster than Poetry?

Yes when the cache is warm: in one test uv installed from a lockfile about six times faster than Poetry, and the two were roughly equal when resolving and locking from scratch, because that is mostly network time. Hatch with its default pip installer was slower than both. The test setup and times are in the speed table, and they will differ on your machine and network.

Which of the three should you use for a new project?

uv, for the fastest iteration and simplest mental model. Stay on Poetry if you’re already comfortable with it and have no speed complaint. Choose Hatch if PyPA-standard alignment matters or you’re building a library with a real publishing matrix.

Do Poetry, uv, and Hatch all have lock files?

Poetry and uv both lock by default (poetry.lock, uv.lock). Hatch can lock too since version 1.17.0 (31 May 2026): setting locked = true on an environment writes a PEP 751 pylock.toml lockfile. It is off by default.

Should you use conda instead of these three?

Usually not. PyTorch and NVIDIA now ship CUDA libraries as ordinary wheels on PyPI, so GPU work no longer needs conda. conda is still the tool when you need native non-Python software, or a whole pinned toolchain, installed from one place. For a typical web or CLI project with only Python dependencies it is unnecessary overhead.