Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Python

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Decompress the Python installation package.
    cd /path/to/PYTHON
    tar -xvf Python-3.8.2.tgz
  3. Go to the directory generated after the decompression.
    cd Python-3.8.2
  4. Perform the configuration.
    ./configure --prefix=/path/to/PYTHON
  5. Perform the compilation and installation.
    make
    make install
  6. Back up Python.
    mv /usr/bin/python /usr/bin/python-bak
  7. Create a soft link for Python.
    ln -s /path/to/PYTHON/bin/python3.8 /usr/bin/python