Run a .py file

Mouchasounet Posted messages 45 Status Member -  
 anonymous -
Hello,

I downloaded a script from the internet, so I opened it with Python since it is in .py format, and I would like to run the program. What should I do?
Configuration: Windows XP Firefox 2.0.0.6

20 answers

  1. sebsauvage Posted messages 33284 Registration date   Status Moderator Last intervention   15 684
     
    Open an MS-Dos window,
    type: python monprogramme.py

    If it doesn't work, you need to add Python to the PATH (environment variable).
    12