Python3 Centos安装
yum -y install python-devel
wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz
tar -xvJf Python-3.6.2.tar.xz
cd Python-3.6.2
./configure prefix=/usr/local/python3
make -j8
make install
cp /usr/local/python3/lib/python3.4/configparser.py /usr/local/python3/lib/python3.4/ConfigParser.py
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
ln -s /usr/local/python3/bin/easy_install-3.4 /usr/bin/easy_install3
参考文献:
https://www.cnblogs.com/JahanGu/p/7452527.html
https://blog.csdn.net/kk185800961/article/details/53296822