CentOS7 installation Python3.5

Source: Internet
Author: User

2. Install Python's dependency package
Yum-y Groupinstall "Development tools" Yum-y install Openssl-devel sqlite-devel bzip2-devel ncurses-devel Gdbm-devel Read Line-devel tcl-devel tk-devel xz-devel zlib-devel db4-devel libpcap-devel
2. Download the Python3.5 source package and compile it
Cd/usr/local/srcwget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgztar-zxf/usr/local/src/ Python-3.5.1.tgz && cd python-3.5.1./configure--prefix=/opt/python3.5--enable-sharedmake && make Installln-s/opt/python3.5/bin/python3/usr/bin/python3echo "/opt/python3.5/lib" >/etc/ld.so.conf.d/ Python3.5.confldconfig

Detects if the python3.5 is successfully installed

Python3--version
3. Upgrade Pip

Because python3.5 comes with pip,setuptools.

/OPT/PYTHON3.5/BIN/PIP3 Install--upgrade pip
Ln-s/opt/python3.5/bin/pip/usr/bin/pip
3. Upgrade Setuptools
wget Https://bootstrap.pypa.io/ez_setup.py-O-| Python3
Ln-s/opt/python3.5/bin/easy_install/usr/bin/easy_install

CentOS7 installation Python3.5

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.