@@ -130,8 +130,8 @@ package name followed by ``==`` and the version number:
130
130
131
131
If you re-run this command, ``pip `` will notice that the requested
132
132
version is already installed and do nothing. You can supply a
133
- different version number to get that version, or you can run ``pip
134
- install --upgrade `` to upgrade the package to the latest version:
133
+ different version number to get that version, or you can run ``python
134
+ -m pip install --upgrade `` to upgrade the package to the latest version:
135
135
136
136
.. code-block :: bash
137
137
@@ -143,14 +143,14 @@ install --upgrade`` to upgrade the package to the latest version:
143
143
Successfully uninstalled requests-2.6.0
144
144
Successfully installed requests-2.7.0
145
145
146
- ``pip uninstall `` followed by one or more package names will remove the
147
- packages from the virtual environment.
146
+ ``python -m pip uninstall `` followed by one or more package names will
147
+ remove the packages from the virtual environment.
148
148
149
- ``pip show `` will display information about a particular package:
149
+ ``python -m pip show `` will display information about a particular package:
150
150
151
151
.. code-block :: bash
152
152
153
- (tutorial-env) $ pip show requests
153
+ (tutorial-env) $ python -m pip show requests
154
154
---
155
155
Metadata-Version: 2.0
156
156
Name: requests
@@ -163,25 +163,25 @@ packages from the virtual environment.
163
163
Location: /Users/akuchling/envs/tutorial-env/lib/python3.4/site-packages
164
164
Requires:
165
165
166
- ``pip list `` will display all of the packages installed in the virtual
167
- environment:
166
+ ``python -m pip list `` will display all of the packages installed in
167
+ the virtual environment:
168
168
169
169
.. code-block :: bash
170
170
171
- (tutorial-env) $ pip list
171
+ (tutorial-env) $ python -m pip list
172
172
novas (3.1.1.3)
173
173
numpy (1.9.2)
174
174
pip (7.0.3)
175
175
requests (2.7.0)
176
176
setuptools (16.0)
177
177
178
- ``pip freeze `` will produce a similar list of the installed packages,
179
- but the output uses the format that ``pip install `` expects.
178
+ ``python -m pip freeze `` will produce a similar list of the installed packages,
179
+ but the output uses the format that ``python -m pip install `` expects.
180
180
A common convention is to put this list in a ``requirements.txt `` file:
181
181
182
182
.. code-block :: bash
183
183
184
- (tutorial-env) $ pip freeze > requirements.txt
184
+ (tutorial-env) $ python -m pip freeze > requirements.txt
185
185
(tutorial-env) $ cat requirements.txt
186
186
novas==3.1.1.3
187
187
numpy==1.9.2
0 commit comments