Centos 7 Installation Python3.6

Source: Internet
Author: User
Tags install openssl

1> installation python3.6 may use the dependency

Yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel

2> to the Python website to find the download path, download with wget

wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz

3> Decompression tgz Bag

TAR-ZXVF python-3.6.4.tgz

4>, move python under/usr/local.

MV Python-3.6.4/usr/local

5> Delete old versions of Python dependencies

Ll/usr/bin | grep python

Rm-rf/usr/bin/python

6> into the Python directory, compiles files and installs Python

cd/usr/local/python-3.6.4/

./configure

Make

Make install

7> Create a new soft link to the latest Python

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

Python-v

Python 3.6.4

Centos 7 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.