目录

Ubuntu20.04-安装python3.6

Ubuntu:20.04 安装python3.6

新安装Ubuntu20.04的系统上默认安装python3.8,如果需要使用3.6版本,可参考以下步骤

查看已有python版本

python3 --version

添加python软件源

sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update

安装3.6版本并查看

sudo apt install python3.6
python3.6 -V