Can not update /remove and install python

General support questions
Post Reply
kiransharma755
Posts: 46
Joined: 2015/02/27 14:30:54

Can not update /remove and install python

Post by kiransharma755 » 2015/05/18 04:32:46

When I checked, my centos 6.6. has python 2.6.6 installed. It is not the latest. when I tries to remove it and reinstall, It seems that I could not remove it.


import sys
>>> print (sys.version)
2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]


Is that true that we can not remove the python that came with centos? are there system library also in python?

Thanks
Kiran

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Can not update /remove and install python

Post by gerald_clark » 2015/05/18 05:26:02

Most of the system configuration and maintenance programs are written in python, so no, you cannot change it.

kiransharma755
Posts: 46
Joined: 2015/02/27 14:30:54

Re: Can not update /remove and install python

Post by kiransharma755 » 2015/05/18 05:27:46

Thanks.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can not update /remove and install python

Post by TrevorH » 2015/05/18 07:20:27

Do not attempt to upgrade the system python or all the Redhat tools will break. No yum for example.

There are other repos that package a parallel installable python - IUS Community for example have python3* packages.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply