Is there a software that can make python scripts (.py files) on ubuntu 18.04 system execute like exe files on windows? Double click on ubuntu 18.04 and it will run
Asked
Active
Viewed 66 times
0
-
1Does this answer your question? [What do I use on linux to make a python program executable](https://stackoverflow.com/questions/304883/what-do-i-use-on-linux-to-make-a-python-program-executable) – DYZ Jul 15 '21 at 00:41
1 Answers
0
Adding the following line at the top of the script:
#!/usr/bin/env python
And making the script executable with chmod e.g: chmod 755 script.py
on your command line should do the trick.
You could also use a program like pyinstaller to bundle the script into a linux executable.

Matthew Wisdom
- 131
- 3