rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps
whereis python |xargs rm -frv
whereis python
cd /home/source
wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
tar xf Python-3.6.5.tgz
cd Python-3.6.5
mkdir /usr/local/python3.6.5
./configure --prefix=/usr/local/python3.6.5
make && make install
ln /usr/local/python3.6.5/bin/python3.6 /usr/bin/python
ln /usr/local/py
[root@lsw-centos65 Python-3.6.5]# python -V
Python 3.6.5
[root@lsw-centos65 Python-3.6.5]# pip --version
pip 9.0.3 from /usr/local/python3.6.5/lib/python3.6/site-packages (python 3.6)
原文:https://www.cnblogs.com/bionexit/p/14737554.html