在usr/local目录下,下载并解压安装包:
# wget http://cdn.npm.taobao.org/dist/python/3.6.5/Python-3.6.5.tgz
# tar -zxvf Python-3.6.5.tgz
安装:
#cd Python-3.6.5
#./configure
#make all
#make install
#make clean
#make distclean
# /usr/local/bin/python3 –V
卸载:
卸载python3
rpm -qa|grep python3|xargs rpm -ev --allmatches --nodeps
whereis python3 |xargs rm -frv
删除所有残余文件
成功卸载!
whereis python
查看现有安装的python