浏览量:3725 最近编辑于:null
# 下载Python3
```bash
wget https://www.python.org/ftp/python/3.7.8/Python-3.7.8.tar.xz
```
# 解压
```bash
tar -xvJf Python-3.7.8.tar.xz
```
# 创建编译安装目录
```bash
mkdir /usr/local/python3
```
# 编译安装
```bash
cd Python-3.7.8
```
```bash
./configure --prefix=/usr/local/python3 --enable-optimizations --with-ssl
```
```bash
make && make install
```
# 修改软链接
```bash
ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/local/bin/pip3
```