Mainul Islam
Mainul Islam

Reputation: 1276

Edit with IDLE option is not available after installing Python 2.7 alongside Python 3.5. What should be done?

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.

New logo of Python files/scripts

Upvotes: 2

Views: 5311

Answers (3)

mondieki
mondieki

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:

  1. Open the Control Panel.

    Control Panel Screenshot

  2. Uninstall Python Launcher.

  3. Click on Python 3.6 (or the version you have.)
  4. Choose Modify.
  5. On the Optional Features page, make sure the .py launcher checkbox is checked.
  6. Proceed and wait for the setup to finish.

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.

enter image description here

Hope this helps.

Upvotes: 1

karanrp
karanrp

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.pywwill solve your problem. This worked for me.

Upvotes: 1

Adnan Umer
Adnan Umer

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

Related Questions