0 votes
by (360 points)
How do I compile a .PY file?

1 Answer

0 votes
by (1.3k points)
Prepend #! /usr/bin/python with your script. Run the following command in your terminal to make the script executable: chmod +x SCRIPTNAME.py. Now, \u200bsimply type ./SCRIPTNAME.py to run the executable script.

Related questions

0 votes
1 answer
asked May 28, 2021 by runpythonscripts (240 points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jul 6, 2021 by python (700 points)
0 votes
1 answer
...