标签:pytho grep org centos config gre 删除 https usr
•到python官网找到下载路径, 用wget下载
wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
•解压tgz包
tar -zxvf Python-3.6.4.tgz
•把python移到/usr/local下面
mv Python-3.6.4 /usr/local
•删除旧版本的python依赖
ll /usr/bin | grep python
rm -rf /usr/bin/python
•进入python目录
cd /usr/local/Python-3.6.4/
•配置
./configure
•编译 make
make
•编译,安装
make install
•删除旧的软链接,创建新的软链接到最新的python
rm -rf /usr/bin/python
ln -s /usr/local/bin/python3.6 /usr/bin/python
python -V
标签:pytho grep org centos config gre 删除 https usr
原文地址:https://www.cnblogs.com/Amos-Turing/p/9035431.html