+ 2

Difference between pip and pip3?

When I try to install some packages like pandas,numpy etc using pip it shows error and then when using pip3 it works.what is the difference?

18th May 2020, 2:17 PM
salman haider
salman haider - avatar
5 Respuestas
+ 5
The modules in pypi have different versions. With pip3 the version for Python3 and not Python2 is installed.
18th May 2020, 2:28 PM
Oma Falk
Oma Falk - avatar
+ 5
pip3 always operates on the Python3 environment only, as pip2 does with Python2. pip operates on whichever environment is appropriate to the context. For example if you are in a Python3 venv, pip will operate on the Python3 environment.
18th May 2020, 2:29 PM
Abbas Rahimi
Abbas Rahimi - avatar
0
Kiibo Ghayal In desktop
18th May 2020, 2:47 PM
salman haider
salman haider - avatar
0
pip is for python2.x while pip3 is for python3.x
19th May 2020, 12:20 AM
Ahmed Muhammed
Ahmed Muhammed - avatar