0

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?

Alessio Ragno
  • 476
  • 1
  • 6
  • 20
beginner
  • 463
  • 5
  • 18
  • You may need to reboot the computer for windows explorer to re-index the application launcher folder. If still not working, then in the "Open with..." dialog, just browser to your python.exe. Alternatively and arguably better, make sure your python installation folder is on the system `Path` variable, and then in a command prompt, browse to your python file and run `python `. This will let you run it multiple times in succession and actually see any output that occurs. – theferrit32 Jun 12 '15 at 14:21
  • when I am trying to open python file ,by default it is opening in visual studio – beginner Jun 12 '15 at 14:23
  • I tried python ,but not working – beginner Jun 12 '15 at 14:26

1 Answers1

0

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>
Alessio Ragno
  • 476
  • 1
  • 6
  • 20