Run a .py file on Linux

lecameleon -  
Pierrecastor Posted messages 10830 Registration date   Status Moderator 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 answers

  1. DerkoFR Posted messages 652 Status Member 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
    1. lecameleon2201 Posted messages 11 Status Member
       
      I did it and it doesn't work. What should I do???
      0
    2. DerkoFR Posted messages 652 Status Member 74
       
      Do you have the python package?

      sudo apt-get install python3.1

      & (syntax highlighting)

      sudo apt-get install idle-python3.1
      0
    3. lecameleon2201 Posted messages 11 Status Member
       
      I have Python 3, that's what I started coding with. My problem is creating an executable file like in Windows. Thank you.
      0