tldr: shebang that runs uv which understands <a href="https://peps.python.org/pep-0723/" rel="nofollow">https://peps.python.org/pep-0723/</a> to run Python script with dependencies installed on-the-fly (cached):<p><pre><code> #!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "ffmpeg-normalize",
# ]
# ///</code></pre>