Reputation: 1276
My IDLE option in the right click menu has disappeared.
I think it's because I use Python 3.5.2, but I installed Python 2.7.12 without uninstalling Python 3.5.2. Later I uninstalled Python 2.7.12 and from then on the .py
files are opening in either Chrome but I cannot get it to open with IDLE. And the usual logo for Python scripts has disappeared. Instead now it has the logo in the picture. What can I do? I uninstalled Python 3.5 after the problem and reinstalled it. Yet the problem persists.
Upvotes: 2
Views: 5311
Reputation: 1971
An alternative approach would be to modify your Python installation
. I would advice against reinstalling Python because you stand to lose your installed modules and scripts. But if you don't mind starting over again, reinstalling Python
will fix this.
To modify your Python installation:
Open the Control Panel
.
Uninstall
Python Launcher.
.py launcher checkbox
is checked. After it's done, you can either restart your computer or sign out then sign in.
Now when you right click on your .py files
, Edit With IDLE will show up in the context menu. Keep in mind that your .py files
should Open With Python Launcher.
Hope this helps.
Upvotes: 1
Reputation: 230
At time of saving python code...will display two extensions .py
and .pyw
.
Save file using .pyw
extension, i.e. instead of dropcols.py
save it as dropcols.pyw
will solve your problem. This worked for me.
Upvotes: 1
Reputation: 3689
Option 1:
Right click on any .py
file and click Open With
and click choose default Program
or Choose another app
.
From the list that appears after if you see python.exe
choose that otherwise click Choose another program
or Browse
option. Might that option appears after clicking More App
in Windows 10.
Next browse to python insallation directory and select python.exe
Option 2:
Run regedit
and goto key HKEY_CLASSES_ROOT\.py
and change the default to Python.File
.
After that logout & login. Context menu will appear again.
Upvotes: 1