python -m pip install and pip install

Pankaj Jangid pankaj.jangid at gmail.com
Mon Oct 7 20:58:05 EDT 2019


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


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /