在终端分别输入python,python2,python3
python和python2默认都是python2
python3才是python3
Ubuntu下是默认没有pip的,需要自己手动安装
sudo apt install python-pip #安装python2的pip
sudo apt install python3-pip # 安装python3的pip
pip list #查看python2下的pip安装包
pip3 list #查看python3下pip安装包
来源:https://www.cnblogs.com/taoshihan/p/12273117.html