Installing the source code on the CentOS server python3.5

Source: Internet
Author: User
Tags centos server

                                  Installing the source code on the CentOS server python3.5

Yun Zhengjie

1. Introduction to the system environment

2. Installing dependent Packages

[Email protected] packages]# yum-y groupinstall "Development tools"

[Email protected] packages]# yum-y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel Readline-dev El tk-devel gdbm-devel db4-devel libpcap-devel xz-devel

3. Download the python3.5 installation package

[Email protected] python]# wget https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz

[Email protected] python]# TAR-XF python-3.5.0.tgz

[Email protected] python]# CD Python-3.5.0

[[email protected] python-3.5.0]#./configure--prefix=/usr/local--enable-shared//Specify the installation path and generate a dynamic-link library

[[email protected] python-3.5.0]# make-j 4 && make install

[Email protected] python-3.5.0]# ln-s/usr/local/bin/python3/usr/bin/python3

4. Generate Dynamic Library information and verify

[Email protected] python-3.5.0]# echo/usr/local/lib >>/etc/ld.so.conf.d/local.conf

[Email protected] python-3.5.0]# Ldconfig

[Email protected] python-3.5.0]# Python3--version
Python 3.5.0
[Email protected] python-3.5.0]#

5. Define an alias so that you don't have to select it every time you tab out

[Email protected] python-3.5.0]# echo "#Add python3.5 alias by Yinzhengjie" >>/ETC/BASHRC

[Email protected] python-3.5.0]# echo "Alias Py=python3" >>/ETC/BASHRC

[Email protected] python-3.5.0]# py--version
Python 3.5.0
[Email protected] python-3.5.0]#

Installing the source code on the CentOS server python3.5

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.