1 download python3.8.1
$ cd /srv $ wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
If the server is slow download speeds, you can download a local Thunder.
2 Create the installation directory
$ mkdir /usr/local/python3.8
Extracting copied to the server 3
$ Tar -xzvf Python 3.8.1.tgz
4 Compile
$ cd /srv/Python-3.8.1 $ ./configure --prefix=/usr/local/python3.8
5 Installation
$ make $ make install
6 modified the old version
$ Mv / usr / bin / python / usr / bin / python_bak
7 to create a new version of the software link
$ ln -s /usr/local/python3/bin/python3 /usr/bin/python