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