CentOS 7将Python 2.X.X升级到Python 3.X.X

# cd /usr/local/src/
# ls
Python-3.5.2.tgz
# tar -xf Python-3.5.2.tgz 
# ls
Python-3.5.2  Python-3.5.2.tgz
# cd Python-3.5.2/
# yum install gcc
# gcc -v
gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) 
# ./configure
# yum install openssl-devel -y
# make && make install
# rm -rf /usr/bin/python
]# ln -s /usr/local/bin/python3.5 /usr/bin/python
# python -V
Python 3.5.2

FYI

原文地址:https://www.cnblogs.com/Tiago/p/5749778.html