linux - How to install python 3.8 directly in /usr/bin? - Stack Overflow
Installing python3.8 alongside python3.6 Centos
Python 3.8 not possible to install on Linux? Why?
Cleanest way to install Python 3.7 on CentOS 7 image
Videos
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 have a centos7 server which already uses python3.6, but on one user account, I want to be using python3.8 in a virtual environment. Is it safe to just install python 3.8 onto the server and just use that for the virtual environment or is this going to cause problems for my python3.6 installation? I've found info about this for Ubuntu, where you can use alternative installs, but nothing for centos.
If I have to rebuild the server with python 3.8 I will, but I really would rather not if it's safe to have the two together.