Unable to open python files in python.exe of python 2.7

2.7k views Asked by At

I have installed python 2.7 but could not open python files. I can see C:\Python27\python.exe, even in command prompt I can see Python2.7 is installed. When I try to open python file with right click -> open with, it is showing only microsoft visual studio and pythonw.exe. I am not able to see python.exe in that list.

Am I missing any settings here?

1

There are 1 answers

2
Alessio Ragno On

I think you shuld go on Command Prompt and get in the directory of the python script and digit:

C:\Python27\python.exe <filename.py>