How to run pip for python 3 and python 2

I have two versions of python installed on my machine (Ubuntu 14.xx LTE), as well as two versions pip(one for python 2 and one for python 3). When I run pip --versionthe command line, I get the following output: pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7). I looked into this directory, and there are many other things in it. However, I could not find pip.py. How to run pipfor python 3? Any help is appreciated.

+4
source share
2 answers

To use a different version of pip for python on ubuntu, you can use the main version of python after pip. For example:

pip --version

will return the standard version of the protocol

pip2 --version

Python 2

pip3 --version

Python 3.

, !

+7

python.exe python 3 python3. PATH. python python 2, python3 python 3.

, pip python 2. pip3 python 3.

0

Source: https://habr.com/ru/post/1606500/


All Articles