Installing Python
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the Python installation package.
cd /path/to/PYTHON tar -xvf Python-3.8.2.tgz
- Go to the directory generated after the decompression.
cd Python-3.8.2
- Perform the configuration.
./configure --prefix=/path/to/PYTHON
- Perform the compilation and installation.
make make install
- Back up Python.
mv /usr/bin/python /usr/bin/python-bak
- Create a soft link for Python.
ln -s /path/to/PYTHON/bin/python3.8 /usr/bin/python
Parent topic: Configuring the Compilation Environment