First, download the Python installation package from the official website.
: https://www.python.org/ftp/python/3.5.0/
Download software: python-3.5.0.tgz
Note: The specific installation version, can be downloaded according to the relevant needs of their own.
Second, the downloaded Python installation package is placed on the Linux system. (I'm using the Xftps tool here)
Third, install Python
1. Unpack the Python installation package
Related commands: TAR-ZXVF python-3.5.0.tgz
2. Extract a Python version of the folder, enter the file, find the Configure file
3. Run the configuration file
Related commands:./configure
3.1. After running the command, My Linux system pops up prompting, as shown in
Search for relevant information based on content prompts because the Linux system does not have a C compiler installed, so it cannot be compiled. (maybe there are some small partners in question, I install Python how to have a relationship with C, because Python is written in C language)
3.2. Install the C language compiler in the system
Related commands: Yum install-y gcc
When the installation is complete, the system will prompt itself complete!
3.3. Rerun the command at this time:./configure
System configuration is successful!
4. Run command: Make
Command explanation: Make is compiling the source code and generating the execution file.
5. Run command: Make install
Command explanation: Make install is to copy the generated execution files to the necessary directories in the Linux system, such as copy to the/usr/local/bin directory, so that all user can run the program.
After the installation is complete, run the command: python3.5 (note: Here I am the installation of 3.5, so enter the python3.5, note that there is no space between Python and the number, small partners please refer to the Python version of the need)
A pop-up prompt indicates that the installation was successful.
Linux----Installation Python3.5