Python 2.7 On CentOS

Home » CentOS » Python 2.7 On CentOS
CentOS 3 Comments

If for some reason you would like to upgrade your Python version in CentOS, or change the version that it currently comes with, you might want to think it twice as it’s very very likely that you will break your system.

That’s the reason why you will not find newer versions of Python in repository servers.

3 thoughts on - Python 2.7 On CentOS

  • It’s not available in any CentOS repo. Red Hat doesn’t update the version of anything in Enterprise Linux, beyond bug and security fixes. CentOS being binary compatible follows the same rules.

    If you want python 2.7 you will need to find a 3rd party repo or install from source.

  • Note that the main python version that ships with CentOS is critical to normal operations, so if you want to also have a newer version of python on there then you will have to install the newer version in an alternate location and have it co-exist with the current version of python.

    I can not stress this too much … CentOS absolutely will not function if you upgrade the installed python to a newer version, so make sure you know what you are doing when installing a new version alongside the old one.

  • Hi,

    I just read your comment about the issue with upgrading. I’m a newby in Linux and would need an advice. I have OpenErp on Centos6.3 with Python 2.6.6. One of the modules gives me the following error “DeprecationWarning: the sets module is deprecated from sets import Set”. As I don’t have this error in a sandbox with Ubuntu 12.04 I tend to think it’s due to Python 2.6.6. Coul someone please help me and tell me how I can solve this? Any help is greatly appreciated. Thanks
    Marie

LEAVE A COMMENT