How do I run the script?

How do I run a script written in python 2.6 in 7 through the console?

Author: Deleted, 2012-08-21

2 answers

Any of the options will work:

  1. In the context menu of the script, select "Open with..." and in the window that appears, select the python interpreter (python.exe). In this case, you can associate *.py files with the interpreter.
  2. Open the console and type something like путь_к_python.exe путь_к_скрипту. If the path to python already exists in the environment variable PATH, then you can simply python путь_к_скрипту.
 3
Author: eigenein, 2012-08-21 10:05:08
c:\путькпитону\python scriptname.py

?

 1
Author: qnub, 2012-08-21 10:03:29