A cool feature of uv: You can run a Python script without activating a virtual environment first.

$ uv run -- python training .py

The command above will do the following automatically:

1. Install Python if not present
2. Create virtual env if not present
3. Install requirements

Comments