linux系统下debian10极简快速安装python3.7.4教程

先安装debian10需要的依赖

先更新
apt-get update
apt-get upgrade
apt-get dist-upgrade

安装所需要依赖
apt-get install build-essential python-dev python-setuptools python-pip python-smbus
apt-get install build-essential libncursesw5-dev libgdbm-dev libc6-dev
apt-get install zlib1g-dev libsqlite3-dev tk-dev
apt-get install libssl-dev openssl
apt-get install libffi-dev

下载python

官网链接
wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz

安装python

解压软件
tar -zxvf Python-3.7.4.tgz
cd Python-3.7.4

创建python3目录
mkdir /usr/local/python3

配置链接目录
./configure --prefix=/usr/local/python3

编译安装 
make && make install

编译安装的时间根据机器性能来决定所耗时长

查看版本 
python --version
THE END