编程语言
首页 > 编程语言> > debian上安装python3.6

debian上安装python3.6

作者:互联网

1.安装aptitude

sudo apt-get install aptitude

2.安装依赖包

sudo aptitude -y install gcc make zlib1g-dev libffi-dev libssl-dev

3.下载 Python 3.6.9

wget https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tgz

4.解压压缩包

tar -xzvf Python-3.6.9.tgz

5.进入文件夹,并执行安装配置

cd Python-3.6.9/

./configure --prefix=/usr/local/python36 --enable-shared CFLAGS=-fPIC --enable-optimizations

make && make install

标签:3.6,install,Python,make,dev,python3.6,aptitude,安装,debian
来源: https://www.cnblogs.com/DesignerA/p/11617458.html