@@ -76,7 +76,7 @@ virtual environment you're using, and modify the environment so that running
7676``python `` will get you that particular version and installation of Python.
7777For example:
7878
79- .. code-block :: bash
79+ .. code-block :: console
8080
8181 $ source ~/envs/tutorial-env/bin/activate
8282 (tutorial-env) $ python
@@ -108,7 +108,7 @@ complete documentation for ``pip``.)
108108
109109You can install the latest version of a package by specifying a package's name:
110110
111- .. code-block :: bash
111+ .. code-block :: console
112112
113113 (tutorial-env) $ python -m pip install novas
114114 Collecting novas
@@ -120,7 +120,7 @@ You can install the latest version of a package by specifying a package's name:
120120 You can also install a specific version of a package by giving the
121121package name followed by ``== `` and the version number:
122122
123- .. code-block :: bash
123+ .. code-block :: console
124124
125125 (tutorial-env) $ python -m pip install requests==2.6.0
126126 Collecting requests==2.6.0
@@ -133,7 +133,7 @@ version is already installed and do nothing. You can supply a
133133different version number to get that version, or you can run ``python
134134-m pip install --upgrade `` to upgrade the package to the latest version:
135135
136- .. code-block :: bash
136+ .. code-block :: console
137137
138138 (tutorial-env) $ python -m pip install --upgrade requests
139139 Collecting requests
@@ -148,7 +148,7 @@ remove the packages from the virtual environment.
148148
149149``python -m pip show `` will display information about a particular package:
150150
151- .. code-block :: bash
151+ .. code-block :: console
152152
153153 (tutorial-env) $ python -m pip show requests
154154 ---
@@ -166,7 +166,7 @@ remove the packages from the virtual environment.
166166 ``python -m pip list `` will display all of the packages installed in
167167the virtual environment:
168168
169- .. code-block :: bash
169+ .. code-block :: console
170170
171171 (tutorial-env) $ python -m pip list
172172 novas (3.1.1.3)
@@ -179,7 +179,7 @@ the virtual environment:
179179but the output uses the format that ``python -m pip install `` expects.
180180A common convention is to put this list in a ``requirements.txt `` file:
181181
182- .. code-block :: bash
182+ .. code-block :: console
183183
184184 (tutorial-env) $ python -m pip freeze > requirements.txt
185185 (tutorial-env) $ cat requirements.txt
@@ -191,7 +191,7 @@ The ``requirements.txt`` can then be committed to version control and
191191shipped as part of an application. Users can then install all the
192192necessary packages with ``install -r ``:
193193
194- .. code-block :: bash
194+ .. code-block :: console
195195
196196 (tutorial-env) $ python -m pip install -r requirements.txt
197197 Collecting novas==3.1.1.3 (from -r requirements.txt (line 1))
0 commit comments