Score:0

How to install pip for python2 and pip3 for python3 in Ubuntu?

zw flag

How can I install pip for python2 and pip3 for python3. So that when I run pip --version it should show pip 18.1 from /usr/lib/python2.7/dist-packages/pip (python 2.7) and when I run pip3 --version, it should show pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7).

us flag
Which version of Ubuntu are you using? The versions of Ubuntu which used python2 have reached end of life (also, support for python 2 ended at the beginning of 2020). The oldest supported version of Ubuntu is 20.04, which has python 3.8
noonenine avatar
zw flag
I'm using Ubuntu 22.04. I have installed python2 and python-pip. When I do run the command ```pip2 --version```, I got ```pip 20.3.4 from /usr/lib/python2.7/dist-packages/pip (python 2.7)``` is shown. But when I install ```python3-pip```, it is removing ```python-pip```. How can I keep ```python-pip``` and install ```python3-pip```?
us flag
Do you really need python2 for something? It is unsupported.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.