Upgrading Python to version 2.6 on Ubuntu Intrepid 8.10

Submitted by Jochus on Thu, 25/10/2012 - 21:37 | Posted in: Linux


I have an old Ubuntu 8.10 server running at home. Today, I wanted to create a script which needs Python. The latest version of Python in the Intrepid Ubuntu repository is 2.5, but I needed 2.6. Luckily, it's very easy to install 2.6 from source and run it next to the 2.6 version!

  • Download the Python 2.6 sources from http://www.python.org/download/releases/2.6.8/
  • Unzip and execute the following commands
    $ sudo ./configure --prefix=/usr/lib/python/2.6
    $ sudo make
    $ sudo make install
  • You are now able to use Python 2.6 from: /usr/lib/python/2.6/bin/python

Add new comment

The content of this field is kept private and will not be shown publicly.

Full HTML

  • Lines and paragraphs break automatically.
  • You can caption images (data-caption="Text"), but also videos, blockquotes, and so on.
  • Web page addresses and email addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <cpp>, <css>, <html5>, <java>, <javascript>, <php>, <sql>, <xml>. The supported tag styles are: <foo>, [foo].
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.