---
title: uv Is the Python Packaging Tool That Finally Clicked
description: Astral's uv turned Python packaging into one fast tool. The uv sync, uv run and uv python install workflows I now reach for every day.
canonical: https://lukeocodes.dev/uv-python-packaging
type: article
locale: en_GB
published: 2026-08-23T00:00:00.000Z
modified: 2026-08-23T00:00:00.000Z
authors:
  - Luke Oliff
section: Engineering
tags:
  - Engineering
  - Open Source
  - uv
  - astral
  - python
  - cpython
  - tooling
feed: https://lukeocodes.dev/rss.xml
search: https://lukeocodes.dev/search.json?q={query}
schema:
  - "@context": https://schema.org
    "@graph":
      - "@type": WebSite
        "@id": https://lukeocodes.dev/#website
        url: https://lukeocodes.dev
        name: Luke Oliff
        alternateName: lukeocodes
        inLanguage: en
        publisher:
          "@id": https://lukeocodes.dev/authors/luke#person
        description: Personal blog and writing by Luke Oliff — developer relations, voice AI, developer experience.
        potentialAction:
          - "@type": SearchAction
            target:
              "@type": EntryPoint
              urlTemplate: https://lukeocodes.dev/blog/search?q={search_term_string}
            query-input: required name=search_term_string
      - "@type": Person
        "@id": https://lukeocodes.dev/authors/luke#person
        name: Luke Oliff
        url: https://lukeocodes.dev/authors/luke
        description: Engineer and developer relations leader. Writing about developer relations, AI, and the voice industry, from the UK.
        mainEntityOfPage: https://lukeocodes.dev/authors/luke
        givenName: Luke
        familyName: Oliff
        image: https://lukeocodes.dev/authors/luke.jpg
        jobTitle: Engineer and developer relations leader
        sameAs:
          - https://www.linkedin.com/in/lukeocodes
          - https://github.com/lukeocodes
          - https://bsky.app/profile/lukeocodes.dev
          - https://x.com/lukeocodes
          - https://hashnode.com/@lukeocodes
          - https://dev.to/lukeocodes
        knowsAbout:
          - Developer Relations
          - Developer Experience
          - Voice AI
          - Text-to-Speech
          - Answer Engine Optimisation
          - Search Engine Optimisation
          - Open Source
          - Developer Tooling
          - API Design
          - Speech-to-Text
          - Voice Agents
          - Community Building
        knowsLanguage:
          - English
        nationality: British
        alumniOf:
          - "@type": Organization
            name: The Open University
  - "@context": https://schema.org
    "@graph":
      - "@type": Person
        "@id": https://lukeocodes.dev/authors/luke#person
        name: Luke Oliff
        url: https://lukeocodes.dev/authors/luke
        description: Engineer and developer relations leader. Writing about developer relations, AI, and the voice industry, from the UK.
        mainEntityOfPage: https://lukeocodes.dev/authors/luke
        givenName: Luke
        familyName: Oliff
        image: https://lukeocodes.dev/authors/luke.jpg
        jobTitle: Engineer and developer relations leader
        sameAs:
          - https://www.linkedin.com/in/lukeocodes
          - https://github.com/lukeocodes
          - https://bsky.app/profile/lukeocodes.dev
          - https://x.com/lukeocodes
          - https://hashnode.com/@lukeocodes
          - https://dev.to/lukeocodes
        knowsAbout:
          - Developer Relations
          - Developer Experience
          - Voice AI
          - Text-to-Speech
          - Answer Engine Optimisation
          - Search Engine Optimisation
          - Open Source
          - Developer Tooling
          - API Design
          - Speech-to-Text
          - Voice Agents
          - Community Building
        knowsLanguage:
          - English
        nationality: British
        alumniOf:
          - "@type": Organization
            name: The Open University
      - "@type": BlogPosting
        "@id": https://lukeocodes.dev/uv-python-packaging#article
        headline: uv Is the Python Packaging Tool That Finally Clicked
        alternativeHeadline: uv Is the Python Packaging Tool That Finally Clicked
        description: Astral's uv turned Python packaging into one fast tool. The uv sync, uv run and uv python install workflows I now reach for every day.
        datePublished: 2026-08-23T00:00:00.000Z
        dateModified: 2026-08-23T00:00:00.000Z
        url: https://lukeocodes.dev/uv-python-packaging
        mainEntityOfPage: https://lukeocodes.dev/uv-python-packaging
        inLanguage: en
        author:
          - "@id": https://lukeocodes.dev/authors/luke#person
        isPartOf:
          "@id": https://lukeocodes.dev/#website
        keywords: Engineering, Open Source, uv, astral, python, cpython, tooling
        articleSection: Engineering
        about:
          - "@type": SoftwareApplication
            name: uv
          - "@type": Organization
            name: Astral
          - "@type": SoftwareApplication
            name: CPython
          - "@type": Thing
            name: Open Source
        abstract: uv 0.12.9 landed on 1 September 2026 with CPython 3.15.0rc2 in its managed builds, so uv python install 3.15 gets you the release candidate without touching system Python. uv sync and uv run replace the whole venv-and-pip dance.
        speakable:
          "@type": SpeakableSpecification
          cssSelector:
            - .post-tldr
            - h1
        image: https://lukeocodes.dev/og.png?h=uv+Is+the+Python+Packaging+Tool+That+Finally+Clicked&d=Astral%27s+uv+turned+Python+packaging+into+one+fast+tool.+The+uv+sync%2C+uv+run+and+uv+python+install+workflows+I+now+reach+for+every+day.&e=Writing
        wordCount: 551
        timeRequired: PT3M
        publisher:
          "@id": https://lukeocodes.dev/authors/luke#person
      - "@type": BreadcrumbList
        itemListElement:
          - "@type": ListItem
            position: 1
            name: Home
            item: https://lukeocodes.dev
          - "@type": ListItem
            position: 2
            name: Writing
            item: https://lukeocodes.dev/blog
          - "@type": ListItem
            position: 3
            name: uv Is the Python Packaging Tool That Finally Clicked
            item: https://lukeocodes.dev/uv-python-packaging
      - "@type": FAQPage
        "@id": https://lukeocodes.dev/uv-python-packaging#faq
        mainEntity:
          - "@type": Question
            name: Does uv replace pip, virtualenv and pyenv?
            acceptedAnswer:
              "@type": Answer
              text: In practice, yes. uv sync manages the virtual environment and lockfile, uv run executes inside it, and uv python install manages interpreters. One tool covers what pip, pip-tools, virtualenv, pyenv and pipx used to split between them.
          - "@type": Question
            name: Can uv install a Python release candidate like 3.15?
            acceptedAnswer:
              "@type": Answer
              text: Yes. uv python install 3.15 pulls the newest matching managed build, and since uv 0.12.9 (1 September 2026) that includes CPython 3.15.0rc2. uv prefers stable versions and only falls back to prereleases when nothing stable matches.
          - "@type": Question
            name: Where does uv get its Python builds?
            acceptedAnswer:
              "@type": Answer
              text: From Astral's python-build-standalone project. Python has no official distributable binaries, so uv downloads prebuilt standalone CPython on demand rather than compiling one for you.
---

[Luke Oliff.](/)

- [Blog](/blog)
- [CV](/cv)
- [Uses](/uses)
- [User manual](/user-manual)
- [Living with ADHD](/living-and-working-with-adhd)
- [RSS](/rss.xml)

[Luke Oliff · Writing](/blog)

# uv Is the Python Packaging Tool That Finally Clicked

Aug 2026 · [Engineering](/blog/category/engineering) · 3 min read · [Luke Oliff](/authors/luke)

**TL;DR:** uv 0.12.9 landed on 1 September 2026 with CPython 3.15.0rc2 in its managed builds, so uv python install 3.15 gets you the release candidate without touching system Python. uv sync and uv run replace the whole venv-and-pip dance.

uv is Astral's Rust-written package and project manager for Python, and after a year of ignoring it I moved everything over in an afternoon. The uv python packaging workflow collapses pip, pip-tools, virtualenv, pyenv and pipx into two commands you run all day: `uv sync` and `uv run`. Version 0.12.9, out on [1 September 2026](https://github.com/astral-sh/uv/releases/tag/0.12.9), even ships CPython 3.15.0rc2 in its managed builds, so you can test the release candidate without installing it yourself.

I was sceptical. Another packaging tool, in a space that already has ten. But this one earns its place.

## What uv changes about Python packaging

The old flow had ceremony. Create a venv, activate it, remember to activate it, `pip install`, freeze a requirements file that drifts from what you actually installed, install a second tool to pin transitive dependencies properly.

uv keeps a `pyproject.toml` and a `uv.lock`, and reconciles the two on every command. You do not activate anything. You do not think about the environment at all, which is the point. Add a dependency with `uv add httpx` and the lockfile updates. Clone the repo fresh and `uv sync` rebuilds the exact environment from the lock in seconds, because the resolver is written in Rust and caches aggressively.

## uv sync and uv run, the two commands

`uv sync` reads `pyproject.toml`, resolves, and materialises a `.venv` that matches the lockfile exactly. Nothing more to remember.

```bash
uv sync
uv run pytest
uv run python -m myapp
```

`uv run` executes a command inside that environment without an activate step. If the environment is stale, uv syncs it first. So `uv run pytest` on a fresh checkout just works, no "did I activate the venv" moment. This is the uv python packaging habit that stuck fastest for me: I stopped typing `source .venv/bin/activate` and never missed it.

To pin the interpreter a project uses, `uv python pin 3.13` writes a `.python-version` file, and every `uv run` after that honours it. The [Python versions docs](https://docs.astral.sh/uv/concepts/python-versions/) cover the resolution order if you need the detail.

## The bundled-CPython trick for testing prereleases

This is the part that sold me. uv manages its own CPython builds from Astral's [python-build-standalone](https://docs.astral.sh/uv/guides/install-python/) distributions, and each uv release refreshes the catalogue of versions it can fetch. uv 0.12.9 added CPython 3.15.0rc2, so testing the release candidate is one line:

```bash
uv python install 3.15
uv run --python 3.15 python -V
# Python 3.15.0rc2
```

No system install, no compiling, no risk to whatever Python your OS depends on. `uv python list` shows what is available and what you already have. When 3.15.0 final lands on 1 October, a later uv release picks it up and `uv python install 3.15` grabs the stable build instead.

uv prefers stable versions by default and only reaches for a prerelease when no stable version satisfies the constraint, so this does not surprise you in normal use. You opt into the RC by asking for it. I run my test suite against the next Python this way now, weeks before it ships, and it costs me nothing to keep around.

The thing I keep coming back to: uv made the boring parts invisible. The environment, the lockfile, the interpreter download, all of it happens under `sync` and `run`, and I get to think about the code instead.

[← Newer: Claude Code Quality Got Worse, and Anthropic Admitted It](/claude-code-quality)

[All posts](/blog) →

## Search this site

`GET https://lukeocodes.dev/search.json?q=<words>` returns matching posts as JSON, each with its page URL and its markdown URL. Add `&limit=<1-50>` for more than 10. How it works: [/blog/search](https://lukeocodes.dev/blog/search.md).

```sh
curl "https://lukeocodes.dev/search.json?q=developer+relations"
```

---

© 2026 Luke Oliff. Posts live at the root of this site.

- [GitHub](https://github.com/lukeocodes)
- [LinkedIn](https://www.linkedin.com/in/lukeocodes)
- [X](https://x.com/lukeocodes)
- [Bluesky](https://bsky.app/profile/lukeocodes.dev)
- [Email](mailto:luke@lukeoliff.com)
- [RSS](/rss.xml)

## Cookies

This site sets one analytics cookie, from Google Analytics, and only in a browser that accepts the cookie banner. A client that does not run scripts sets no cookies, so there is nothing to accept or decline here.

[Cookie policy](/cookies)
