[Tutor] How can I overwrite the previous version on linux ?

Prasad, Ramit ramit.prasad at jpmorgan.com
Wed Dec 19 17:30:26 CET 2012


Steven D'Aprano wrote:
> On 19/12/12 16:52, Dae James wrote:
> > My linux distribution is CentOs 6.3. And python attached to the OS is 2.6.
> > How can I overwrite the previous version with python 2.7 ? Or how can I
> >uninstall the previous version?
> 
> Why? Do you like breaking your operating system?
> 
> Never, ever mess with the operating system's installed version of Python.
> Unless you are an expert, you will probably break things. Even if you are
> an expert, it is best to just leave it for the operating system.
> 
> Instead, install Python 2.7 separately.
> 
> You could try:
> 
> $ sudo yum install python2.7
> 
> from the command line, and see if that works. I'm still using Centos 5,
> so I don't know what Centos 6 will do, but there is a very slim chance that
> it will override the system Python 2.6. That's okay! If the package manager
> does it, you can assume it will be done safely.
> 
> Chances are, unfortunately, that yum won't install Python 2.7 for you. In
> that case, you have to do it by hand. Do you need help with that? Once it is
> installed side-by-side with the system python, add this to your .bashrc file:
> 
> alias python=python2.7
> 
> 

In addition to what Steven said, this webpage might be helpful
http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2/

I have no familiarity with CentOS so YMMV with that link. Google
had lots of similar pages. http://lmgtfy.com/?q=centos+6+python2.7 

> 
> --
> Steven
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  


More information about the Tutor mailing list