May-22-2019, 07:36 AM
hi there ,
I am trying to run one of my script file i.e firstfile.py on my windows 2008 r2 machine
where in I have installed python3.7.2.
While installing I selected "Add to Path" option .
my installation path is default i.e C:\Users\Administrator\AppData\Local\Programs\Python\Python37
I have saved my firstfile.py python script file in the same location.
When trying to run this file from shell i.e interpreter following error is coming:
Running the same file from cmd(windows console) it is running fine...no issues there...
Thanx in advance
I am trying to run one of my script file i.e firstfile.py on my windows 2008 r2 machine
where in I have installed python3.7.2.
While installing I selected "Add to Path" option .
my installation path is default i.e C:\Users\Administrator\AppData\Local\Programs\Python\Python37
I have saved my firstfile.py python script file in the same location.
When trying to run this file from shell i.e interpreter following error is coming:
Error:Python 3.7.2 (tags/v3.7.2:9a3ffc0492, Dec 23 2018, 23:09:28) [MSC v.1916 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> python.exe C:\Users\Administrator\AppData\Local\Programs\Python\Python37\myf
irstfile.py
File "<stdin>", line 1
python.exe C:\Users\Administrator\AppData\Local\Programs\Python\Python37\myf
irstfile.py
^
SyntaxError: invalid syntax
how to run this file....and tried to save the above python.exe path in system PATH variable also...but still can not run file..Running the same file from cmd(windows console) it is running fine...no issues there...
Thanx in advance