Run a .py file on Linux

lecameleon -  
Pierrecastor Posted messages 10830 Registration date   Status Modérateur Last intervention   -
Hello,
I would like to know how to execute a .py file under Linux. I am using Emacs.
Configuration: Linux / Firefox 37.0

3 réponses

DerkoFR Posted messages 652 Status Membre 74
 
Hello,

Here is the command:
python the_name_of_the_file.py


Have a nice day

Alexandre.

--
Apprentice developer.
HTML, CSS, PHP & JAVA (Website Creator)
12
lecameleon2201 Posted messages 11 Status Membre
 
I did it and it doesn't work. What should I do???
0
DerkoFR Posted messages 652 Status Membre 74
 
Do you have the python package?

sudo apt-get install python3.1

& (syntax highlighting)

sudo apt-get install idle-python3.1
0
lecameleon2201 Posted messages 11 Status Membre
 
I have Python 3, that's what I started coding with. My problem is creating an executable file like in Windows. Thank you.
0
Flachy Joe Posted messages 2303 Status Membre 261
 
Documentation can be found here: https://fr.lmgtfy.app/?q=compiler%20python
0