Centos 7.2 Installation Python 3.5 (for Python 3 all versions installed)

Source: Internet
Author: User

Tip: We must not destroy the environment of the system. Because several key applications depend on the Python 2.7.5(TheCentOS 7 default version). If you replace the system's Python environment, there will be a lot of unpredictable errors and even a system reload.

Pre-Installation Preparation

Yum-y Install epel-*
Yum Clean All
Yum Makecache
Yum-y install gcc openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel

Download Python Package

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

Unzip and install

Tar zxf python-3.5.3.tgz

./configure

Make && make Altinstall

Execute file for python program:/usr/local/bin/python3.5

python application directory: /usr/local/lib/python3.5
Pip the execution file: /usr/local/bin/pip3.5

To view the installed version
Python3.5-v

Centos 7.2 Installation Python 3.5 (for Python 3 all versions installed)

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.