CentOS7.X 安装Python3.9

安装依赖

1
yum -y install wget gcc automake autoconf libtool make

安装

1
2
3
4
5
6
7
8
9
10
11
mkdir /shadowsocks
cd /shadowsocks
wget https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tgz

tar -zxvf Python-3.9.0.tgz
cd Python-3.9.0
./configure
make && make install

# 检查版本
python3 -V