Summary and Schedule

This lesson introduces uv which is a universal tool for installing Python and managing dependencies for Python projects.

Learning Objectives


After attending this workshop, participants will be able to:

  • Easily install Python on macOS, Linux, and Windows operating systems.
  • Manage package dependencies for a Python project without worrying about version conflicts.
  • Install Python packages as command line tools.
  • Create a reproducible and maintainable Python environment for collaborative project development.

What is uv?


The uv tool is a fast Python package and project manager tool written in Rust. It is developed by Astral who also created ruff (linting and formatting) and ty (type checker). It replaces tools like pip, tox, conda, pipenv, poetry, pdm, pipx, and more. Different versions of Python can easily be managed with uv. A global cache is utilized for dependencies to prevent excessive package downloads and disk usage. It is the most simple and easiest way to install Python and run Python code and tools.

The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.

Installing uv


The only requirement for this workshop is the uv tool. Detailed installation instructions are given in the uv documentation but the main macOS, Linux, and Windows installation commands are presented below.

Install uv on macOS and Linux with:

BASH

curl -LsSf https://astral.sh/uv/install.sh | sh

Install uv on Windows with:

BASH

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

You may need to restart your terminal to ensure that uv was installed. Check the installation by displaying the version number using the --version option as shown below. If the command displays the uv version number then the installation was successful.

BASH

uv --version

OUTPUT

uv 0.8.4 (e176e1714 2025-07-30)

That’s it! You are now ready to run Python code. With uv you do not need to worry about installing Python or activating virtual environments, uv handles all of this for you.