Ubuntu20.04如何安装python3.6

更新apt源配置,安装python3.6

sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.6 python3.6-distutils

安装适配python3.6的pip

wget https://bootstrap.pypa.io/pip/3.6/get-pip.py
python3.6 get-pip.py

发表回复

您的电子邮箱地址不会被公开。