ubuntu安装python2和python3

1.安装python2

sudo apt install python

2.安装python3

sudo apt install python3

3.指定python2的pip,使用为pip

sudo apt install python-pip

4.指定为python3的pip,使用为pip3

sudo apt install python3-pip

你可能感兴趣的:(ubuntu安装python2和python3)