git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

python -m pip install and pip install


Hongyi Zhao <hongyi.zhao at gmail.com> writes:

> Hi,
>
> What's the diff:
>
> python -m pip install mod
> and
> pip install mod 

A very good use-case is when you have both, python2 and python3
installed.

python2 -m pip install mod

and

python3 -m pip install mod

will install the package in the corresponding PYTHONPATH.

--
Regards
Pankaj