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
30 years After the Chernobyl Nuclear Accident: Time for Reflection and Re-evaluation of Current Disaster Preparedness Plans
The Climate Crisis – A Race We Can Win | United Nations
Srtc Tifton Ga
Warren Ohio Craigslist
Caesars Rewards Loyalty Program Review [Previously Total Rewards]
Hotels
Angela Babicz Leak
Tyson Employee Paperless
Pga Scores Cbs
Puretalkusa.com/Amac
Www.paystubportal.com/7-11 Login
Degreeworks Sbu
Johnston v. State, 2023 MT 20
Mills and Main Street Tour
Missed Connections Dayton Ohio
Q33 Bus Schedule Pdf
Lancasterfire Live Incidents
Diamond Piers Menards
Iu Spring Break 2024
G Switch Unblocked Tyrone
Copart Atlanta South Ga
Amazing deals for DKoldies on Goodshop!
Understanding Genetics
Where to eat: the 50 best restaurants in Freiburg im Breisgau
The Listings Project New York
Sam's Club Gas Price Hilliard
Synergy Grand Rapids Public Schools
Downtown Dispensary Promo Code
Does Royal Honey Work For Erectile Dysfunction - SCOBES-AR
Ghid depunere declarație unică
Emily Katherine Correro
Culver's Hartland Flavor Of The Day
Hattie Bartons Brownie Recipe
Roto-Rooter Plumbing and Drain Service hiring General Manager in Cincinnati Metropolitan Area | LinkedIn
2016 Honda Accord Belt Diagram
Nacho Libre Baptized Gif
Craigslist Car For Sale By Owner
Reborn Rich Ep 12 Eng Sub
Ukg Dimensions Urmc
Pinellas Fire Active Calls
Emerge Ortho Kronos
Wal-Mart 2516 Directory
Walgreens Agrees to Pay $106.8M to Resolve Allegations It Billed the Government for Prescriptions Never Dispensed
Orion Nebula: Facts about Earth’s nearest stellar nursery
Final Fantasy 7 Remake Nexus
Dogs Craiglist
Jasgotgass2
2000 Ford F-150 for sale - Scottsdale, AZ - craigslist
Walmart Front Door Wreaths
Razor Edge Gotti Pitbull Price
Southern Blotting: Principle, Steps, Applications | Microbe Online
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.