How to run a script written in python 2.6 in 7-ke through the console?
2 answers
Any of the following options will do:
- In the context menu of the script, select "Open with ..." and in the appeared window select the python interpreter (
python.exe
). In this case, you can associate*.py
files with the interpreter. - Open the console and enter something like
путь_к_python.exe путь_к_скрипту
. If the path topython
already in the PATH environment variable, then you can simplypython путь_к_скрипту
.
- @eigenein Again, I am stupid questions), but how to add the path to the python in the patch variable? - Timi
- @Tim oszone.net/6157 - eigenein
|
c:\путькпитону\python scriptname.py
?
- "C: \ Program Files \ Python36 \ python.exe" "C: \ Server \ repositories \ projects \ python_examples \ first \ HelloWorld.py" - Nikolay Baranenko
|