python -m pip install and pip install

Hongyi Zhao hongyi.zhao at gmail.com
Mon Oct 7 22:49:50 EDT 2019


On Tue, 08 Oct 2019 06:28:05 +0530, Pankaj Jangid wrote:

> A very good use-case is when you have both, python2 and python3
> installed.
> 
> python2 -m pip install mod

If so, why not just:

pip2 install mod

> 
> and
> 
> python3 -m pip install mod

and using:

pip3 install mod

> 
> will install the package in the corresponding PYTHONPATH.




More information about the Python-list mailing list