0

So I am running python 3.6.5 on a school computer the most things are heavily restricted to do on a school computer and i can only use python on drive D. I cannot use batch either. I had python 2.7 on it last year until i deleted all the files and installed python 3.6.5 after that i couldn't double click on a .py file to open it as it said continue using E:\Python27\python(2.7).exe I had the old python of a USB which is why it asks this but know i would like to change that path the the new python file so how would i do that in windows

Dextron
  • 598
  • 7
  • 24
  • Two possible solutions I can think of is changing the registry ```https://stackoverflow.com/a/29179765/4180176``` or updating your file associations. – Joshua Nixon Nov 01 '18 at 10:42

2 Answers2

0

Just open your Python IDE and open the file manually.

Holger
  • 74
  • 1
  • 9
  • I do not want to do that as it takes time and i rather double click on it ive tried uninstalling it multiple times still the same thing – Dextron Nov 01 '18 at 10:03
0

Go to your Windows Settings --> Standard-Apps for Filetyp. There you can choose with wich program you want to open a specific filtyp, in this case ".py".

enter image description here

Let me know if this works :)

Holger
  • 74
  • 1
  • 9