CentOS Installation Python3

Source: Internet
Author: User

Just contact Python, see a lot of controversy python2,python3, I do not know which is good, because I read the book author suggested learning Python3, so I also no matter who good or bad, just follow the author began it. CentOS Pre-installed is Python2 so need two versions at the same time, here using source installation, Python2 known Yum will use, others do not know.

1, download Python source package, www.python.org

2, upload to the virtual machine, direct, wget can also

3. Tar xvf python-3.6.0a1.tar.xz #解压

4, mkdir-p/applications/python #把所有源码安装的软件都放在/applications

CD PYTHON-3.6.10A1

./configure--prefix=/applications/python

Make && make install

mv/usr/bin/python/usr/bin/python2.6

Ln-s/applications/python/bin/python3.6/usr/bin/python



Execute python after completion is Python3

This article is from the "Learning Records" blog, so be sure to keep this source http://674564591.blog.51cto.com/12568986/1974265

CentOS Installation Python3

Related Article

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.