Trying to install python3.9 on CentOS 7
Cleanest way to install Python 3.7 on CentOS 7 image
How to install Python 3.6 on CentOS 7?
How to install Python 3 on CentOS 7?
How to install Python pip on CentOS 7?
By default, CPython install compiled python binary in /usr/local/bin/python. (source code: https://github.com/python/cpython/blob/main/configure#L571) You may specify the prefix mannually as configure --prefix=/usr.
You need to set symlinks such as
$ sudo ln -sfn /usr/local/bin/python3.8 /usr/bin/python3.8
$ sudo ln -sfn /usr/local/bin/pip3.8 /usr/bin/pip3.8
The above works great in CentOS7 after installing Python3.8 as noted above.
I've tried a few didnt online guides but nothing seems to be helping me achieve what I'm looking for. I have a Linux machine for my network environment that I use for automation. I'm trying to upgrade my python 3.6.8 to some version of 3.9.x. I want to remove python 3.6.8, install 3.9, and then put 3.9 as the default for every user on the box.
Current Version of Linux 3.10.0-1160.6.1.el7.x86_64
I'm not a linux pro but I know some things.