now if you chmod 755 it you can run it on any machine with the uv binary installed like this: ./app.py – and it will automatically create its own isolated environment and run itself with the correct installed dependencies and even the correctly installed Python version.

Source: #!/usr/bin/env uv run