0

Hi
I installed a different version of Python but how to choose edit with IDLE to open scripts in python 2.7 or python 3.2 on my Windows desktop?

4
Contributors
6
Replies
65
Views
2 Years
Discussion Span
Last Post by tony75
Featured Replies
  • I think you could add a launcher to the explorer's context menu by following [this tutorial](http://www.howtogeek.com/107965/how-to-add-any-application-shortcut-to-windows-explorers-context-menu/). Read More

  • what I have done on my windows 7 is that I have installed both versions on it , then have created short cuts of each idle on the desktop and just use whichever I want . I think vegaseat has posts on this matter too Read More

  • Write these two batch files and put a shortcut of each on your desk top: rem save as idle27.bat rem run the IDLE IDE with Python27 C:\Python27\pythonw.exe -u C:\Python27\Lib\idlelib\idle.pyw and rem save as idle32.bat rem run the IDLE IDE with Python32 C:\Python32\pythonw.exe -u C:\Python32\Lib\idlelib\idle.pyw Read More

  • If you use an IDE like Ninja, then you can switch beteeen different versions of Python by following the tabs: Edit Preferences Execution then simply edit the Python Path field. If it shows C:/Python32/python.exe replace the 32 with 27 The Ninja IDE is free from: http://www.ninja-ide.org/ Read More

1

what I have done on my windows 7 is that I have installed both versions on it , then have created short cuts of each idle on the desktop and just use whichever I want . I think vegaseat has posts on this matter too

1

Write these two batch files and put a shortcut of each on your desk top:

rem save as idle27.bat
rem run the IDLE IDE with Python27
C:\Python27\pythonw.exe -u  C:\Python27\Lib\idlelib\idle.pyw

and

rem save as idle32.bat
rem run the IDLE IDE with Python32
C:\Python32\pythonw.exe -u  C:\Python32\Lib\idlelib\idle.pyw
1

If you use an IDE like Ninja, then you can switch beteeen different versions of Python by following the tabs:
Edit
Preferences
Execution
then simply edit the Python Path field.
If it shows
C:/Python32/python.exe
replace the 32 with 27

The Ninja IDE is free from:
http://www.ninja-ide.org/

Edited by sneekula

This question has already been answered. Start a new discussion instead.
Be sure to adhere to our posting rules.