[Python-Dev] cpython (3.4): Issue #22295: Adopt 'python -m pip' as the preferred invocation

Antoine Pitrou solipsis at pitrou.net
Sat Sep 6 14:27:28 CEST 2014


On Sat,  6 Sep 2014 12:40:19 +0200 (CEST)
nick.coghlan <python-checkins at python.org> wrote:
>  
>  The following command will install the latest version of a module and its
>  dependencies from the Python Package Index::
>  
> -    pip install SomePackage
> +    python -m pip install SomePackage
> +
> +.. note::
> +
> +   For POSIX users (including Mac OS X and Linux users), the examples in
> +   this guide assume the use of a :term:`virtual environment`.

Why not advocate --user instead? It is simpler than messing around with virtual
environments and will suffice for most use cases.

Regards

Antoine.




More information about the Python-Dev mailing list