I am working on the Ubuntu terminal and I have both python 3.8 and 2.7 installed. I have changed the default to use the 2.7 version. However, when I run pip -V
this is what it says:
pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)
So any installations I do using pip will go to the 3.8 version. What do I do to have pip install to the 2.7 version?
Asked
Active
Viewed 120 times
0

ervsml
- 21
- 4
-
1try python -m pip where python is the desired version – Shrey Joshi Jun 01 '21 at 07:58
-
1just do `pip2` or `pip2.7` to use pip for python 2.7 – hypadr1v3 Jun 01 '21 at 07:59
-
https://stackoverflow.com/search?q=%5Bpip%5D+different+Python+version – phd Jun 01 '21 at 14:31