Skip to content

Commit d486aa1

Browse files
committed
Moved language around and and added an example of how to run the activate script directly
1 parent 1306cef commit d486aa1

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

source/tutorials/installing-packages.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,13 +212,21 @@ Using :ref:`virtualenv`:
212212

213213
For more information, see the `venv`_ docs or the `virtualenv <http://virtualenv.pypa.io>`_ docs.
214214

215-
In both of the above cases, Windows users should _not_ use the
216-
`source` command, but should rather run the `activate` script directly
217-
from the command shell. The use of `source` under Unix shells ensures
215+
The use of `source` under Unix shells ensures
218216
that the virtual environment's variables are set within the current
219217
shell, and not in a subprocess (which then disappears, having no
220218
useful effect).
221219

220+
In both of the above cases, Windows users should _not_ use the
221+
`source` command, but should rather run the `activate` script directly
222+
from the command shell like so:
223+
224+
::
225+
226+
<DIR>\Scripts\activate
227+
228+
229+
222230
Managing multiple virtual environments directly can become tedious, so the
223231
:ref:`dependency management tutorial <managing-dependencies>` introduces a
224232
higher level tool, :ref:`Pipenv`, that automatically manages a separate

0 commit comments

Comments
 (0)