1.下载python3.8
1 | cd ~/Download |
解压
1 | tar -zxvf Python-3.8.11.tgz |
2.创建目录
1 | cd /usr/local |
3.编译安装
1 | ./configure prefix=/usr/local/python/python3.8 --enable-optimizations |
4.配置环境变量
1 | # python |
参考:Ubuntu16.04安装Python3.8,3.7,3.9(含卸载方法,支持多版本共存)
1.下载python3.8
1 | cd ~/Download |
解压
1 | tar -zxvf Python-3.8.11.tgz |
2.创建目录
1 | cd /usr/local |
3.编译安装
1 | ./configure prefix=/usr/local/python/python3.8 --enable-optimizations |
4.配置环境变量
1 | # python |
参考:Ubuntu16.04安装Python3.8,3.7,3.9(含卸载方法,支持多版本共存)