"Linux" Ubuntu installation Python3

Source: Internet
Author: User

Narrative:

Ubuntu17.04 comes with Python2.7 and Python3.5.3 version, because Python2 and Python3 have some gaps may need to install the update Python3 version, and switch the default Python interpreter.

0x01

Get the latest Python source through wget, the latest version of this article is python3.6.3 (HTTPS://WWW.PYTHON.ORG/FTP/PYTHON/3.6.3/PYTHON-3.6.3.TAR.XZ)

wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz

0x02

Unzip the downloaded original file.

tar -xvf python-3.6. 3. tar. XZ

  

0x03

CD to the newly unzipped directory, compile and install the source files

CD python-3.6. 3
./configure
Make
Make install

  

0x04

Give Python3 an alias: Alias Python=python3

Alias Python=python3

"Linux" Ubuntu installation Python3

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.