Debian9 安装 Python3.6

之前一些脚本需要python3.6以上的环境,而且我自己喜欢装Debian的最新系统,所以记录一下自己在Debian9上装Python3.6.5的过程。

1.更新
apt-get update
apt-get upgrade
2.安装依赖
aptitude -y install gcc make zlib1g-dev libffi-dev libssl-dev
3.下载Python3.6
wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
4.解压,授权
tar -xvf Python-3.6.5.tgz
chmod -R +x Python-3.6.5
5.安装配置
cd Python-3.6.5/
./configure
6.编译安装
make && make install
Last modification:October 18th, 2019 at 11:05 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment