@@ -40,6 +40,10 @@ Key terms
4040* ``pyvenv `` is the standard tool for creating virtual environments, and has
4141 been part of Python since Python 3.3. Starting with Python 3.4, it
4242 defaults to installing ``pip `` into all created virtual environments
43+ * ``virtualenv `` is a third party alternative (and predecessor) to
44+ ``pyvenv ``. It allows virtual environments to be used on versions of
45+ Python prior to 3.4, which either don't provide ``pyvenv `` at all, or
46+ aren't able to automatically install ``pip `` into created environments.
4347* the `Python Package Index <https://pypi.python.org/pypi >`__ is a public
4448 repository of open source licensed packages made available for use by
4549 other Python users
@@ -63,27 +67,33 @@ Basic usage
6367===========
6468
6569The standard packaging tools are all designed to be used from the command
66- line. For Windows users, the examples below assume that the option to
67- adjust the system PATH environment variable was selected when installing
68- Python. For Linux users, the command to install into the system version of
69- Python 3 is likely to be ``pip3 `` rather than ``pip ``.
70+ line.
7071
7172The following command will install the latest version of a module and its
7273dependencies from the Python Package Index::
7374
74- pip install SomePackage
75+ python -m pip install SomePackage
76+
77+ .. note ::
78+
79+ For POSIX users (including Mac OS X and Linux users), the examples in
80+ this guide assume the use of a :term: `virtual environment `.
81+
82+ For Windows users, the examples in this guide assume that the option to
83+ adjust the system PATH environment variable was selected when installing
84+ Python.
7585
7686It's also possible to specify an exact or minimum version directly on the
7787command line::
7888
79- pip install SomePackage==1.0.4 # specific version
80- pip install 'SomePackage>=1.0.4' # minimum version
89+ python -m pip install SomePackage==1.0.4 # specific version
90+ python -m pip install 'SomePackage>=1.0.4' # minimum version
8191
8292Normally, if a suitable module is already installed, attempting to install
8393it again will have no effect. Upgrading existing modules must be requested
8494explicitly::
8595
86- pip install --upgrade SomePackage
96+ python -m pip install --upgrade SomePackage
8797
8898More information and resources regarding ``pip `` and its capabilities can be
8999found in the `Python Packaging User Guide <http://packaging.python.org >`__.
@@ -120,8 +130,8 @@ User Guide.
120130 ... install packages just for the current user?
121131-----------------------------------------------
122132
123- Passing the ``--user `` option to ``pip install `` will install a package
124- just for the current user, rather than for all users of the system.
133+ Passing the ``--user `` option to ``python -m pip install `` will install a
134+ package just for the current user, rather than for all users of the system.
125135
126136
127137... install scientific Python packages?
0 commit comments