How to convert python scripts into executables on linux? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to convert python scripts into executables on linux?

How to convert python scripts into executables on linux?

30th Jun 2019, 4:44 PM
Leo
Leo - avatar
5 Answers
+ 4
Make a new file : In the first line, add location of Python. It's like : #!file/folder/python/python3 #write your python script then. Save and close. After saving the file, $ chmod +x filename $ ./filename It must work 😸
30th Jun 2019, 5:07 PM
Ayan Fox
Ayan Fox - avatar
+ 3
Not only Python, any file can be executed with these steps 😸
30th Jun 2019, 5:09 PM
Ayan Fox
Ayan Fox - avatar
+ 2
thanks a lot
30th Jun 2019, 5:08 PM
Leo
Leo - avatar
+ 1
ok
30th Jun 2019, 5:10 PM
Leo
Leo - avatar
+ 1
thanks
30th Jun 2019, 5:10 PM
Leo
Leo - avatar