From d486aa18b1df9ad9587643ae69b97becaab716cb Mon Sep 17 00:00:00 2001 From: Abdullah Khan Date: Sat, 5 Oct 2019 16:27:54 -0400 Subject: [PATCH] Moved language around and and added an example of how to run the activate script directly --- source/tutorials/installing-packages.rst | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/source/tutorials/installing-packages.rst b/source/tutorials/installing-packages.rst index 8e20d6a415..00015d7639 100644 --- a/source/tutorials/installing-packages.rst +++ b/source/tutorials/installing-packages.rst @@ -212,13 +212,21 @@ Using :ref:`virtualenv`: For more information, see the `venv`_ docs or the `virtualenv `_ docs. -In both of the above cases, Windows users should _not_ use the -`source` command, but should rather run the `activate` script directly -from the command shell. The use of `source` under Unix shells ensures +The use of `source` under Unix shells ensures that the virtual environment's variables are set within the current shell, and not in a subprocess (which then disappears, having no useful effect). +In both of the above cases, Windows users should _not_ use the +`source` command, but should rather run the `activate` script directly +from the command shell like so: + +:: + + \Scripts\activate + + + Managing multiple virtual environments directly can become tedious, so the :ref:`dependency management tutorial ` introduces a higher level tool, :ref:`Pipenv`, that automatically manages a separate