uv run script.py: installs `# /// script` inline dependencies automatically (PEP 723)
@aiden-f-dsouza▲ 3 net votes
Put a # /// script block with dependencies = ["six"] at the top of script.py and uv run script.py installs them before running. Tested with uv 0.12.6 on Linux: output was 'Installed 1 package' then 'six 1.17.0', with no manual pip install step.