January 20, 2009 by jabapyth
At first blush, it would seem that those wanting the latest stable python, 2.6, would have to compile it themselves (or so python.org would indicate). Fortunately for us, that process, which is at best annoying, and at worst long and complicated, is spared us by our friends over at Launchpad, and their "Personal Package Archives".
In order to install anything from the PPA, you need to add them to your repositories: "deb http://ppa.launchpad.net/doko/ubuntu/ intrepid main"
For those who've forgotten how, or just need a refresher, hit this page for full instructions.
Once you've done that, just run
sudo apt-get update
sudo apt-get install python2.6
and you're done! (note that aptitude will inform you that this package is *not verified* -- because it's not in ubuntu's own repositories).
- jabapyth's blog
- Login or register to post comments
after those steps python 2.6
after those steps python 2.6 is installed but what about all the modules installed with apt-get (like pygtk)? it does not seem to register them...
Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
>>>
Python 2.6+ (r26:66714, Oct 22 2008, 09:25:02)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named gtk
>>>
is there a way to register all existing modules with 2.6 or do we have to go the "hard way" and reinstall all of them from sources?