Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running Ubuntu 12.04 with python 2.7.3 installed. How can I update the version of python to 2.7.4?

apt-get install python2.7

does not install anything new

apt-get update python2.7

does not work as it does not accept arguments

apt-get upgrade python2.7

Installed version 2.7.3, but not change to version 2.7.4.

So: How to install the version 2.7.4 of python on Ubuntu 10.04?

share|improve this question
what does python -v says ? – Raja May 21 '13 at 12:46
If you mean python -V it says 2.7.3. As explained in my question. – Alex May 21 '13 at 13:15
Which version of Ubuntu? Body of question says 10.04 which makes this off topic unless its the Server version. However tag says 12.04. Which is it? – Warren Hill Jul 22 '13 at 14:40
Why would you want 2.7.4? Fixes are being backported to 2.7.3 in 12.04 instead of upgrade to a newer release for the same reason as any other package: Why don't the Ubuntu repositories have the latest versions of software? – gertvdijk Jul 24 '13 at 17:34
up vote 4 down vote accepted

The versions of python2.7 available for each supported version of Ubuntu are listed on Launchpad. Only 2.7.3 is packaged on Ubuntu 12.04. If you want to use 2.7.4, there are several options:

  • Upgrade to Ubuntu 12.10, and then to 13.04, which includes 2.7.4.
  • Request a backport of the 2.7.4 package to 12.04.
  • Backport it yourself, either locally, or in your own PPA.
  • If there is a specific fix you need, request it be backported to 2.7.3 on 12.04.
  • Build and install from source (not really recommended though).
share|improve this answer
Why is building it from source not recommended? Is requesting a backport realistic or shouting at the wind? – Nick T Jan 18 '14 at 5:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.