[Tutor] How to use Python 2.6 with IDLE?

Gregor Lingl gregor.lingl at aon.at
Mon Jul 27 13:27:33 CEST 2009


Dick Moores schrieb:
> I've taken a long break from Python, and now I want to try scripting
> with 2.62. I downloaded and installed 2.62, changed Win XP
> environmental variables to use Python26. Entering python at the
> command line shows I'm using 2.62:
>
> C:\Documents and Settings\Riley>python
> Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit
> (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>   
>
> So I'm able to try out the new features of 2.6 (I had been using
> 2.51), but I can't get IDLE to use 2.6. When I click on
> E:\Python26\Lib\idlelib\idle.pyw, I get an IDLE instance that says:
> Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
> (Intel)] on win32
> Type "copyright", "credits" or "license()" for more information.
>
> And of course, the new 2.6 features don't work.
>
> Advice, please.
>   
I suggest you have to change the association of *.pyw files to the
program, which is used to 'open' it.

In Windows explorer choose menu extras/directory options,
then choose tab file types and select PYW type
then press button 'advacned...' or somethng like this at the bottom
of the tab, chose 'open' and the button to change this.

If you see the entry

"C:\Python25\pythonw.exe" "%1" %*

change this to Python26

My translations from the German button captions to
English might not be correct. Hope this helps anyway.

Regards,
Gregor


> Thanks,
>
> Dick Moores
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
>   



More information about the Tutor mailing list