Centos7.1 install python3.1 in detail

Source: Internet
Author: User
Python is an interpreted, object-oriented, and dynamic data type high-level programming language. Python was invented by guidovanrosum at the end of 1989. The first public release was released in 1991. Like Perl, Python source code also complies with the GPL (GNUGeneralPublicLicense) protocol. This address can be used to learn python learning documents. Http://www.runoob

Python is an interpreted, object-oriented, and dynamic data type high-level programming language.

Python was invented by Guido van Rosum at the end of 1989. The first public release was released in 1991.

Like Perl, Python source code also complies with the GPL (GNU General Public License) protocol.

This address can be used to learn python learning documents. Http://www.runoob.com/python/python-intro.html

Comparison of python:

Areas not suitable for python:

Python version comparison:

Next, let's check my System version.

You can use the yum source to install the python method.

Yum install-y python

If the system does not bring its own version or the system requires an upgraded version, you can download it:

Wget https://www.python.org/ftp/python/3.1/Python-3.1.tar.bz2

1. download and unzip the package.

#Mkdir/user/local/python-3.1 python

#Tar-jxvf Python-3.1.tar.bz2-C/usr/local/python-3.1 & cd/usr/local/Python-3.1 &&. /configure -- prefix =/usr/local/python/& make install

In this step, extract the package to/usr/local/python-3.1, switch to the python package, compile and install the package.#/Usr/local/python

2. just connect the software.

#Ln-s/usr/local/python/bin/python3.1/usr/bin/python3.1

You can use quit () or exit () to exit here ()

The exit command must contain parentheses.

You can see a lot of help information with help.

Bytes ------------------------------------------------------------------------------------------------------------------------------

Here we will write a simple python script.

Vim hello. py # Here is the meaning of python that has ended with py, if it is the sh at the end of shell.

The execution result here is also written and easy to understand.

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.