多版本python混合使用
使用python的一些个人经验,linux同时使用python2 和 pyhon3
pip 安装
python2
sudo apt-get install python-pip
python3
sudo apt-get install python3-pip
查看python版本和路径
>pip -V or pip2 -V or python2 -m pip -V
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
>pip3 -V or python3 -m pip -V
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
>python2
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34)
[GCC 7.3.0] on linux2
Type "help",