First, to make the system installation and update dependencies
Before installing it is recommended to update the depth Deepin 15.11 operating system, and install the necessary dependencies, so that the process of compiling Python-3.7.4.tgz very smooth, run the following command in the terminal system:
sudo apt update
sudo apt install -y make build-essential libssl-dev zlib1g-dev
sudo apt install -y libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm
sudo apt install -y libncurses5-dev libncursesw5-dev xz-utils tk-dev
Second, download and compile Python-3.7.4.tgz package installation
Run the following command in a terminal Download Source Package:
wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz
Https://www.python.org/downloads/ or to download:
From the Python-3.7.4.tgz compressed to extract the source code:
tar xvf Python-3.7.4.tgz
Reference: tar command _Linux tar command uses detailed solution: archiving tools under Linux, used to package and backup .
Into the directory, run ./configure to build configuration files:
cd Python-3.7.4
./configure --enable-optimizations
Third, run the following command to compile and install
make -j8 && sudo make altinstall
sudo make clean
Here, and install Python 3.7.4 has been completed, you can execute python3.7 in the terminal.