Centos 6.5 Installation python3.6

Source: Internet
Author: User

Nonsense not much to say directly on the steps

    1. wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2rc1.tgz
Enter https://www.python.org/ftp/python/, select the appropriate Python version link, directly wget download
    1. Decompression PYTHON-3.6.2RC1
Tar xzf python-3.6.2rc1.tgz
    1. Go to the Python directory to compile
CD PYTHON-3.6.2RC1
    1. Yum-y Install GCC gcc-c++
    2. ./configure
    3. Make a && make install

After the installation is complete, back up the original shortcuts,

Mv/usr/bin/python/usr/bin/python2.bak

Then create a soft link to the python3.6

Ln-s/usr/local/bin/python3/usr/bin/python

If you do not know the Python3 installation directory, which Python3 to find out the installation directory of Python3

Test if Python3 is set to succeed.

Python-v

If the Python 3.6.2rc1 is shown to be successful, if unsuccessful, repeat the steps above to troubleshoot

At this point, the CentOS installation Python3 successfully.

    

Centos 6.5 Installation python3.6

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.