Install Python3.5.2__linux under Linux

Source: Internet
Author: User

Download the installation package from the address https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz.

Since most Linux is python2.4, it is not necessary to install it.

Tar-xvzf python-3.5.2.tgz-  -Decompression Compression pack
CD PYTHON-3.5.1/
./configure--prefix=/usr/python  --Configuration path
Make
install-  -perform installation

/usr/bin/python
[root@ocm1 python-3.5.2]# ls/usr/python/  --Newly installed version
bin  include  Lib  share
[root@ocm1 python-3.5.2]# mv/usr/bin/python/usr/bin/python.2  --Remove the default version
[Root@ocm1 python-3.5.2]# ln-s/usr/python/bin/python3  
python3            python3.5-config  
python3.5          python3.5m         python3-config     
[root@ocm1 python-3.5.2]# ln-s/usr/python/bin/python3/ Usr/bin/python  --Establish a connection let the default be set to version 3.5
[ROOT@OCM1 python-3.5.2]# 
[root@ocm1 python-3.5.2]# python
Python 3.5.2 (default, OCT 2016, 19:30:18) 
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
on Linux Type "Help", "Cop Yright "," credits "or" license "for the more information.






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.