Linux installation Python

Source: Internet
Author: User

One, Linux Yum relies on its own python, in order to prevent errors, the update here is actually to install a python

1 Source Installation:21. Prepare3Yum Groupinstall'Development'   #There is a problem with the installation, you can first install this set of "Development tools" package4Yum Install gcc-* glibc-*-y52. Unpacking6 Tar xvf python....tgz73. Execute the Configure script and add the compilation parameters, for example:--prefix specifying the installation path8CD python-3.6.49./configure--prefix=/usr/local/python3.6Ten4. Compile One  Make A5. Installation -Make install (go to the installation directory and locate the executable file./python3.6 execution can be opened) -  the  -Yum Grouplist#a set of packages-"commands to view -  -Yum Groupinstall'Development Tools'  #a set of packages can be installed +  -  +which LS#View command Location

Second, note that when the default version is modified, Yum performs an exception

1 1. Modify the default Python version 2     mv/usr/bin/python/usr/bin/python2.63     ln-s/usr/bin /python2.7    /usr/bin/python45 2. To prevent Yum from executing exceptions, modify the Python version used by Yum 6     vim/usr/bin/yum7     will head #!/usr/bin/python modified to #!/usr/bin/ python2.6

Linux installation Python

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.