how to run a python file executable

8 Replies
Clover
CloverOP2mo ago
i have checked 2 python files i have. neither of them will open. i found a workaround to open another python file using an sh file, but i have no idea how to make an sh file for a different program. they are marked as executable i am getting zero logs in the example file.
termdisc
termdisc2mo ago
I have created distroboxes in the past to compile and run python stuff while python does exist at the host level, you can't really compile dependencies with it because you lack all of the dev packages for it
Clover
CloverOP2mo ago
is that the only way?
termdisc
termdisc2mo ago
probably not, but it's the way I came up with I've only needed python for qmk and kindle comic converter work so I am not well-versed in python
Clover
CloverOP2mo ago
how do i do it through distrobox?
termdisc
termdisc2mo ago
wait, are you compiling anything or just running? I may have misunderstood the original question you can make an .sh file to run any arbitrary programs, including python
Clover
CloverOP2mo ago
i'm running it not compiling it kinda just hangs when i put it in terminal

Did you find this page helpful?