下载包:
wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.gz
解压安装:
tar -zvxf Python-3.6.3.tar.gz
cd Python-3.6.3
./configure --prefix=/usr/local/python3
make && make install
做软链:
ln -s /usr/local/python3/bin/python3.6 /usr/local/bin/python3.6
测试:
python3.6
输出以下说明成功:
来源:https://www.cnblogs.com/lhlucky/p/linux-install-python.html