Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm new to Python. I use Python 2.7 and I am running Windows Vista (64-bit). How do I make it when I click on .py scripts... that it opens up in IDLE so I can edit it a snap? Ya know... without having to open IDLE by itself. Heh.

I got all the way to C:\Python27\Lib\idlelib but I don't see the IDLE application.

Then when I do right-click and "Default open with" and select the idle.bat file.. I get this: alt text


share|improve this question

migrated from Jan 17 '11 at 13:52

This question came from our site for professional and enthusiast programmers.

Delete theses keys from the registry and do repair-install from the MSI.



share|improve this answer

Have you tried simply right clicking the script and selecting Edit with IDLE?

share|improve this answer
I do not have that. – naknode Jan 17 '11 at 4:25
Ok, brainwave: try selecting pythonw.exe from the installed programs when the error window you posted pops up. – Fantasizer Jan 17 '11 at 4:32
OK I did that... and nothing happened... it's like I never even selected even though I FOUND IT.. and pressed OK on pythonw.exe... Weird. – naknode Jan 17 '11 at 4:34

Go to folder options. Click File Types. Click New. Give the extension i.e py and click OK. Under opens with, click Change button. Click Browse and select the idle.bat from the location.

This will associate idle to open py files.

This link might be helpful for Vista.

share|improve this answer
Where is IDLE located at? Also I am at Vista.. I do not see File Types in my Folder Options... – naknode Jan 17 '11 at 4:30
I'm sorry. They have removed the File Types tab from folder options. The above link might be helpful. – aNish Jan 17 '11 at 4:38
You can find it in Start/Default Programs. – Fantasizer Jan 17 '11 at 4:38
I get: "Windows cannot find 'idle.pyw' – naknode Jan 17 '11 at 7:17

In Windows 10:

Type "Default Programs" in the start menu. "Associate a file type or protocol with a specific program". Select ".py". Click "Change Program". Choose "Python Launcher for Windows". This worked for me even when editing the registry, right-clicking, and reinstalling Python hadn't. Thanks to @Fantasizer for the hint.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .