Installing Python 3.7.6
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the installation directory.
cd path/to/python3.7.6
- Decompress the package.
tar -xvf Python-3.7.6.tar.xz
- Go to the Python-3.7.6 directory.
cd Python-3.7.6
- Perform the compilation and installation.
mkdir /path/to/Python3.7.6 ./configure –prefix=/path/to/Python3.7.6 make -j && make install
- Create a soft link that points to Python.
cd /usr/bin
Run the python -V command. If another version is displayed in the command output, run the following command to delete Python:
rm python
If no Python version is displayed in the command output, run the following command to create a soft link:
ln -s /path/to/Python3.7.6/bin/python3 ./python
- Check the Python version.
python -V
Parent topic: Configuring the Compilation Environment