date: 2019-07-01 18:09:53
author: headsen chen
notice: personal original
1, the installation python3.7 : yum the install zlib -devel bzip2-devel-devel OpenSSL the ncurses-devel SQLite the readline-devel devel-TK-GCC devel the make -Y wget https://www.python.org/ftp/python/3.7 .0 / Python-3.7.0a1.tgz the tar-3.7.0a1.tgz -xzvf Python CD-3.7.0a1 Python ./configure --prefix = / usr / local / python3.7 the make the make && altinstall 2 , the modified Python environment variables mv / usr / bin / Python /usr/bin/python2.7.5 LN /usr/local/python3.7/bin/python3.7 -s / usr / bin / Python 3 , repair yum: sed -i '1S /python/python2.7.5/ '/ usr / bin / yum Sed -i' lS / Python / python2.7.5 / '/ usr / libexec / urlgrabber-EXT-Down