2

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?

4
  • what does python -v says ?
    – Raja G
    May 21, 2013 at 12:46
  • If you mean python -V it says 2.7.3. As explained in my question.
    – Alex
    May 21, 2013 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? Jul 22, 2013 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, 2013 at 17:34

1 Answer 1

5

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).
1
  • 2
    Why is building it from source not recommended? Is requesting a backport realistic or shouting at the wind?
    – Nick T
    Jan 18, 2014 at 5:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .