安装依赖
- 安装其它依赖包
1 | yum -y groupinstall "Development tools" |
- 下载安装包
1 | wget https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tar.xz |
安装python3.8.3
- 创建安装目录,例:
1 | # mkdir /usr/local/python3 |
- 解压下载的安装包
1 | # tar zxvf /Python-3.7.3.tgz . |
- 进入解压后的目录,编译安装
1 | # cd Python-3.8.3 |
建立软链接
1 | # ln -s /usr/local/python3/bin/python3 /usr/bin/python3 |
测试
1 | # python3 |