Debian安装Python 3.10
更新程序包并安装编译依赖环境
apt update && apt upgrade -y
apt install wget build-essential libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev -y
开始正式安装
下载 Python 源码包
cd
wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz
解压 Python 源码
tar xzf Python-3.10.0.tgz
编译 Python 源码
cd Python-3.10.0
./configure --enable-optimizations
安装 Python 3.10
make altinstall
一键安装
apt update && apt upgrade -y && apt install wget build-essential libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev -y && cd && wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz && tar xzf Python-3.10.0.tgz && cd Python-3.10.0 && ./configure --enable-optimizations && make altinstall
License:
私有