well, first let’s get terminology straight. Unless you went out of your way to compile a binary executable from python, python doesn’t have binaries.
Now, to your question. It depends on what kind of file this is. Basically the first thing you do is set permissions to your file to u+x (chmod u+x). Then, if you don’t get an option in the drop-down menu to execute it, go to open with and add python to the list. It will launch the script from your file manager. Oh, and you probably want to have the shebang declaration for python interpreter in that file.
Understood. I did that with success, but I was playing with pyinstaller and the binary did not execute in the same manor (doubleclick from file manager). I am just trying to learn pyinstaller.
so, console scripts like these are always weird when you launch them from the file manager. Normally you don’t actually want to launch them like this. Basically the console often just isn’t displayed for them visually for you. So you script might actually work, but you won’t see it.
If you want to play around and try it, just use something like this:
Why though? It achieves something that is completely unnecessary on Linux systems, where it’s easy to depend on a pre-existing installation of Python. Don’t bother with it; it adds a huge amount of completely unnecessary complexity to a task that is adequately solved by a shebang.
If you’re trying to learn pyinstaller so you can deploy to Windows, then sure, but being able to launch from the Linux file manager is irrelevant to that. (Also, there are other ways of deploying to Windows too.)
Setting .py to executable and double clicking to run script in the file manager appears to work for a CLI, however with either TK or PySimpleGUI the app does not run (AFAIK?) as I do not see the forum.
when you run just a bare python script by double clicking, you just have to make sure all libraries are installed and available system-wide. It will work with no issues if that is done. Pyinstaller makes it so you don’t need to to have them properly set up, but in return it makes your binaries hundreds of megabytes in size for something trivial.
First find out what happens when you run these programs from the terminal. When they fail you will see errors messages that will help you fix problems.
Once the programs work without problem from the germinal then try from the file manager.