Comment Comment by deepakjois uvx is useful to run scripts inside PyPi packages. It does not support running Python scripts directlyYou can use uvx run scripts with a combination of the --with flag to specify the dependencies and invoking python directly. For e.guvx --with youtube-transcript-api python transcript.pyBut you wont get the benefit of PEP 723 metadata. parent deepakjois 1 year ago
You can use uvx run scripts with a combination of the --with flag to specify the dependencies and invoking python directly. For e.g
uvx --with youtube-transcript-api python transcript.py
But you wont get the benefit of PEP 723 metadata.