Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Python

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Upload the source package to the /path/to/PYTHON directory.
  3. Run the following commands to decompress the Python installation package:
    cd /path/to/PYTHON
    tar -xvf Python-3.8.2.tgz
  4. Run the following command to go to the directory generated after decompression:
    cd Python-3.8.2
  5. Run the following command to perform the configuration:
    ./configure --prefix=/path/to/PYTHON
  6. Run the following commands to perform the compilation and installation:
    make -j 16
    make install
  7. Run the following command to back up Python:
    mv /usr/bin/python /usr/bin/python-bak
  8. Run the following command to create a soft link for Python:
    ln -s /path/to/PYTHON/bin/python3.8 /usr/bin/python