DevHeads.net

how to update python 2.7.5 to python 2.7.15 on centos 7.4

Hi,

I have one question about python update.

How to update python 2.7.5 to python 2.7.15 on centos 7.4?

Thanks!

Regards

Andrew

Comments

Re: how to update python 2.7.5 to python 2.7.15 on cent

By Pete Biggs at 08/01/2018 - 04:14

It is unwise and probably almost impossible to update the system
version of python - so much depends on it and being python, it depends
on that specific version. (If you try and do 'yum erase python' it
won't do it because yum itself relies on that python version.)

You have two options really. Install another version of python
somewhere else - but DO NOT make it the default version - or you can
use Software Collections. The latter is really the correct and
supported way of doing it - see

<a href="https://www.softwarecollections.org/" title="https://www.softwarecollections.org/">https://www.softwarecollections.org/</a>

There is a python 2.7.13 in there

<a href="https://www.softwarecollections.org/en/scls/rhscl/python27/" title="https://www.softwarecollections.org/en/scls/rhscl/python27/">https://www.softwarecollections.org/en/scls/rhscl/python27/</a>

if that is sufficient for you.

P.