Installing Python 2.4 on Linux

John Ridley ojokimu at yahoo.co.uk
Sat Apr 9 12:01:01 EDT 2005


* Edward Diener wrote:
> I need python to be python2.3 else many utilities no longer work.

Then leave your 2.3 installation exactly as it is (so that python is a
link to python2.3) and run python2.4 where needed.

To specifically use python 2.4 to run IDLE, simply type in a shell:

[user]$ python2.4 /usr/bin/idle

Alternatively, create your own (executable) idle or pydoc with a
shebang that points permanently at python2.4. For example:

file: $HOME/bin/idle2.4
-----------------------------------
#!/usr/bin/python2.4

from idlelib.PyShell import main
if __name__ == '__main__':
    main()
-----------------------------------

Then if $HOME/bin is on your PATH, you can simply run: idle2.4

> The problem is then using IDLE and pydoc for Python2.4 since neither
> are .py scripts

Really?! What are they on Fedora, then?


John Ridley

Send instant messages to your online friends http://uk.messenger.yahoo.com 



More information about the Python-list mailing list