下载安装python3.8

下载python地址:https://www.python.org/ftp/python/3.8.1/

下载tgz文件后,解压:tar -xvzf Python-3.8.1.tgz

cd Python3.8.1

./configure --prefix=/usr/local/python3 --enable-optimizations

./configure --with-ssl --prefix=/usr/local/python3

./configure

sudo make

sudo make install

sudo apt-get install pip3

# 升级pip

sudo pip3 install --upgrade pip

在ubuntu软件源里zlib和zlib-devel叫做zlib1g zlib1g.dev

  $ sudo apt-get install zlib1g
  $ sudo apt-get install zlib1g.dev    默认不安装

你可能感兴趣的:(下载安装python3.8)