Linux----Installation Python3.5

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.