安装依赖
sudo su
apt install -y \
build-essential \
zlib1g-dev \
libncurses5-dev \
libgdbm-dev \
libnss3-dev \
libssl-dev \
libreadline-dev \
libffi-dev \
libbz2-dev
下载Python3.9
cd /usr/local/src
wget https://www.python.org/ftp/python/3.9.0/Python-3.9.11.tar.xz
#解压