Forget `pip install`, Use This Instead (2024)

uv is a turbo-fast Python package installer and resolver, written in Rust as a high-speed drop-in substitute for pip, pip-tools, and virtualenv.

It’s 10–100x faster than pip and pip-tools: with a warm cache, uv installs are near-instant.

A few more highlights

  • Save Disk Space: uses a global cache to prevent duplicated dependencies
  • Works Everywhere: supports macOS, Linux, and Windows.
  • Easy to Install: You don’t need Python or Rust installed. You can use using curl, pip, or brew.
  • Advanced Features: supports dependency version overrides and alternative resolution strategies.
  • Better Error messages: Best-in-class error messages with a conflict-tracking resolver
  • Advanced pip: editable installs, git dependicies, local dependencies, source distributions
  • Rust: Rust is is known for its speed and safety
  • “resolver”: a smart way to figure out which versions of packages can work together.
  • global module cache: it remembers files it has already seen, so it doesn’t redownload or rebuild dependencies
  • Copy-on-Write and hardlinks: this helps minimize disk space usage.

The bigger vision of uv is to transform Python package management with its speed and reliability.

If you’ve been in the Python ecosystem long enough, you know how painful it is to setup a Python environment or to create a package.

Forget `pip install`, Use This Instead (1)

uv has plans to establish a “Cargo for Python,” a unified Python package and project manager that is extremely fast, reliable, and easy to use.

Think: a single binary that bootstraps your Python installation and gives you everything you need to be productive with Python, bundling not only pip, pip-tools, and virtualenv, but also pipx, tox, poetry, pyenv, ruff, and more.

Python tooling can be a low-confidence experience: it’s a significant amount of work to stand up a new or existing project, and commands fail in confusing ways. In contrast, when working in the Rust ecosystem, you trust the tools to succeed. The Astral toolchain is about bringing Python from a low-confidence to a high-confidence experience.

I’m excited to watch uv significantly improve the Python development experience!

Let’s look at some numbers from their benchmarks

cold installation (8–10x faster)

This is equivalent to running uv pip sync on a new machine

uv is 8–10x faster than pip and pip-tools without caching.

Forget `pip install`, Use This Instead (2)

warm installation (80–115x faster)

It is 80–115x faster when running with a warm cache (e.g., recreating a virtual environment or updating a dependency)

Forget `pip install`, Use This Instead (3)

creating a venv

It’s about 80x faster than python -m venv and 7x faster than virtualenv

Forget `pip install`, Use This Instead (4)

More in this benchmarks

I tested out uv on the transformers package by hugging face.

The speed difference is crystal clear.

Below are a couple commands you should keep in handy to start using uv.

From installation to syncing dependencies.

Find the code on Deepnote.

Installation

Create venv

Activate venv

Install packages

Here’s what it looks like installing torch.

Generate locked dependencies

Sync dependencies

That’s all for this article!

If you want more information about uv, check out these links:

Forget `pip install`, Use This Instead (2024)
Top Articles
Kryptowährungen - Marktkapitalisierung 2024 | Statista
Should I stay in my job or leave for a pay rise? | FRG Blog
San Angelo, Texas: eine Oase für Kunstliebhaber
Craigslist Parsippany Nj Rooms For Rent
How Much Is 10000 Nickels
Craigslist Pet Phoenix
His Lost Lycan Luna Chapter 5
Nordstrom Rack Glendale Photos
Knaben Pirate Download
4Chan Louisville
Facebook Marketplace Charlottesville
How Many Slices Are In A Large Pizza? | Number Of Pizzas To Order For Your Next Party
Morgan And Nay Funeral Home Obituaries
How To Cut Eelgrass Grounded
Www Craigslist Com Phx
Mani Pedi Walk Ins Near Me
50 Shades Darker Movie 123Movies
Violent Night Showtimes Near Amc Fashion Valley 18
Vipleaguenba
Pretend Newlyweds Nikubou Maranoshin
Diakimeko Leaks
Encore Atlanta Cheer Competition
Mandy Rose - WWE News, Rumors, & Updates
Snohomish Hairmasters
Waters Funeral Home Vandalia Obituaries
Craigslist Northern Minnesota
Dl.high Stakes Sweeps Download
R/Mp5
Kamzz Llc
DIY Building Plans for a Picnic Table
Gus Floribama Shore Drugs
Emiri's Adventures
Unm Hsc Zoom
Wake County Court Records | NorthCarolinaCourtRecords.us
Gerber Federal Credit
Reli Stocktwits
Prima Healthcare Columbiana Ohio
Best Weapons For Psyker Darktide
In Polen und Tschechien droht Hochwasser - Brandenburg beobachtet Lage
Dr Adj Redist Cadv Prin Amex Charge
20 bank M&A deals with the largest target asset volume in 2023
Author's Purpose And Viewpoint In The Dark Game Part 3
Mychart University Of Iowa Hospital
Searsport Maine Tide Chart
Chr Pop Pulse
The Pretty Kitty Tanglewood
Minterns German Shepherds
Makemkv Key April 2023
Concentrix + Webhelp devient Concentrix
Myhrkohls.con
Metra Union Pacific West Schedule
Craigslist Charlestown Indiana
Latest Posts
Article information

Author: Laurine Ryan

Last Updated:

Views: 6129

Rating: 4.7 / 5 (77 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Laurine Ryan

Birthday: 1994-12-23

Address: Suite 751 871 Lissette Throughway, West Kittie, NH 41603

Phone: +2366831109631

Job: Sales Producer

Hobby: Creative writing, Motor sports, Do it yourself, Skateboarding, Coffee roasting, Calligraphy, Stand-up comedy

Introduction: My name is Laurine Ryan, I am a adorable, fair, graceful, spotless, gorgeous, homely, cooperative person who loves writing and wants to share my knowledge and understanding with you.