Package management (Python)

pip is old school! uv is faster and more convenient.

Here’s a quick-start guide:

  1. Install uv:
  2. Navigate to a new folder for your project
  3. Run uv init to initiate the project folder
  4. Run uv add package1 package2 ... to install packages and automatically update the requirements
  5. Run a file wih uv run filename.py

Note the following:

This way, you never need to use pip or virtualenv or other tools: everything is handled consistently with uv.

You can also use a specific version of Python for each project!