Ubuntu 12.04 LTS: upgrade python 2.7.3 to 2.7.6 without breaking dependencies

So, I recently reinstalled Precise after I ran into some sharing issues. My friend and I discussed working on something in Python, so I checked my version. However, 12.04 comes with Python 2.7.3 installed. I wanted to upgrade to 2.7.6, so I downloaded tar for it. Then I was stupid enough to break into sudo apt-get remove python without considering the dependency problems for my desktop. (My rationale was that I wanted to get rid of the old installation.)

In short, I broke all my Python dependencies, thereby destroying Unity. I just finished reinstalling Ubuntu again.

I tried to complete this tutorial , but

  • make test had approximately 50% failures (a separate issue in itself).
  • When i introduced

    make install && & chmod -v 755 / usr / lib / libpython2.7.so.1.0

I got

 /usr/bin/install -c python /usr/bin/python2.7 /usr/bin/install: cannot remove `/usr/bin/python2.7': Permission denied make: *** [altbininstall] Error 1 

I am worried that running the command as root again will delete 2.7.3 again and again. I'm just a bash guru, so I don't have a good sense of what's going on under the hood. I'm just trying to get 2.7.6 at the moment; I am completely satisfied that 2.7.3 remains on the machine, if there are dependencies.

So, if I ...

but. just run the command as root?

Q. update Python in some other way (and with the β€œupdate” I just want to get a clean install of 2.7.6)? If so, how?

+7
python linux ubuntu
source share
2 answers

This is the "eat your pie and eat" problem:

  • Or do you rate the stability of Ubuntu 12.04 LTS,
  • or you rate current versions.

I try to update every six months. There may be hybrids; there may be a PPA with "backported" newer Python, your version of 12.04.

+2
source share

uninstalling python from Ubuntu will even temporarily cause your system to crash permanently.

to handle multiple versions of python and its libraries, python virtualenv or even better virtualenvwrapper

see article here

+5
source share

All Articles