ubuntu安装python3.7/3.8/2.7
add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.7
sudo apt install python3.8
sudo apt-get install python3.7-dev
sudo apt-get install python3.8-dev
sudo apt-get install python3.7-distutils
sudo apt-get install python3.8-distutils
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo apt-get install python3-setuptools
sudo python3.7 get-pip.py
sudo python3.8 get-pip.py
sudo apt-get install python-dev-is-python3
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip2.py
sudo python2 get-pip2.py