02_pip difference: linux environment python2, python3 of

1, pip understanding and pip3

centos in my pip and pip3 are python2.7, it can not be installed successfully, always install into the python2

[root@IP ~]# pip -V
pip 19.1.1 from /usr/lib/python2.7/site-packages/pip-19.1.1-py2.7.egg/pip (python 2.7)
[root@IP ~]# pip3 -V
pip 19.1.1 from /usr/lib/python2.7/site-packages/pip-19.1.1-py2.7.egg/pip (python 2.7)

The new linux some non-pip, pip install

[root@IP ~]# yum install python3-pip -y

[root@IP ~]# yum install python2-pip -y

View version

[root@IP ~]# pip -V
pip 19.1.1 from /usr/lib/python2.7/site-packages/pip-19.1.1-py2.7.egg/pip (python 2.7)
[root@IP ~]# pip3 -V
pip 9.0.3 from /usr/lib/python3.6/site-packages (python 3.6)

 

Guess you like

Origin www.cnblogs.com/venicid/p/11949185.html