Installing Python
Procedure
- Use PuTTY to log in to the server as the root user.
- Use an SFTP tool to upload the Python installation package to the /path/to/PYTHON directory on the server.
- Run the following commands to go to the installation directory and decompress the installation package:
cd /path/to/PYTHON tar -zxf Python-3.8.0.tgz && cd Python-3.8.0
- Run the following command to configure the compilation information:
./configure --prefix=/path/to/PYTHON --enable-shared --enable-loadable-sqlite-extensions --enable-optimization
- Run the following command to perform the compilation and installation:
make -j && make install
Parent topic: Configuring the Compilation Environment