1.下载源文件(3.7.0)
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz
2.解压
tar xzf Python-3.7.0.tgz
3.安装
cd Python-3.7.0.tgz./
configure --prefix=/usr/local/python3
make&&make install
4.移动目录,创建链接
mv /usr/bin/python /usr/bin/python_newname
ln -s /usr/local/python3/bin/python3 /usr/bin/python
网友评论