0

"There is no need to compile your program before executing it."

"There is no need to compile your program before executing it." - but can I compile a Python code into an executable file?

20th Apr 2018, 10:57 AM
Yuriy Koshulap
Yuriy Koshulap - avatar
3 Respuestas
+ 1
Just put the following line at the top of it (your Python script): #! /usr/bin/env python then (in the console): sudo mv file.py /usr/local/bin/file sudo chmod a+x /usr/local/bin/file chown root:root /usr/local/bin/file where file.py was your Python script and file the preferred name. Now your script is fully executable without needing any compiling. You'll be able to edit it in the future, but only as root. Works for Linux. Should work on Unixy OSes. Sorry, no Windows method I know of.
20th Apr 2018, 2:11 PM
non
0
py2exe cx_freeze
20th Apr 2018, 12:52 PM
Markus Kaleton
Markus Kaleton - avatar