Install the Python 3.5.0__python on the CentOS 6.6 64bit

Source: Internet
Author: User
The latest version of Python 3 at the official website is 3.5.0, and here is my installation process on CentOS 6.6 64bit:


1, download the Python 3 source code
# cd/usr/local/src/
# wget Https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz

2, decompression python-3.5.0.tgz
# TAR-XZVF Python-3.5.0.tgz

3. Compile and install Python-3.5.0

# CD Python-3.5.0

./configure Compile Command:
# make
Install Command:

# make Install

A large number of warning were found during the compilation process, but the final installation was successful. The following is the final screenshot of the installation:

5, Configuration environment (CentOS 6.5 from Python2)
Python3.5 is installed by default in the/usr/local/bin directory without creating a linked file, and the system automatically creates Python3 soft links, which point to python3.5, which we can execute directly on the command line Python3
See the screenshot below

While python2.7 and python3.5 can coexist, see the screenshot below



Reference documents
[1].http://www.centoscn.com/image-text/install/2015/0503/5345.html

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.