What’s the correct process to install and run a .py application and its dependencies? Where should I save the .py file, where should I run it from, and can it interfere with the rest of my system?
Often there is an application/script I’d like to use and it is provided as a .py file download, along with a list of other applications/scripts that need to be installed separately for it to work. Often not all of these dependencies are available in my distro’s repository. There seems to be an assumption of prior knowledge as to how to get set up to run .py files, and it is therefore not documented on developers pages. Can anyone fill me in?
I’d like to install this application. Perhaps it could be used as an example to help explain the process.
My distro is Debian 13, in case that’s relevant.
Thanks!


Pip work outside venv, you need to add the -break-system-dependencies command option to pip though. However for this kind of utilities I did not encountered issues even when doing it like a savage (pdf2image was the latest one I installed like this. On Devuan (Debian 13/Trixie eqv). Note though: you really first need to check available libraries through apt/system installer first, because these have been packaged for a reason. Only use pip install -break-system-dependencies when all options have been spent.