我要评分
获取效率
正确性
完整性
易理解

Installing Python 3.7.6

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Go to the installation directory.
    cd path/to/python3.7.6
  3. Decompress the package.
    tar -xvf Python-3.7.6.tar.xz
  4. Go to the Python-3.7.6 directory.
    cd Python-3.7.6
  5. Perform the compilation and installation.
    mkdir /path/to/Python3.7.6
    ./configure –prefix=/path/to/Python3.7.6
    make -j && make install
  6. 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
  7. Check the Python version.
    python -V