diff --git a/source/guides/installing-using-pip-and-virtual-environments.rst b/source/guides/installing-using-pip-and-virtual-environments.rst index 22d1840cc..8e9abfefb 100644 --- a/source/guides/installing-using-pip-and-virtual-environments.rst +++ b/source/guides/installing-using-pip-and-virtual-environments.rst @@ -90,6 +90,12 @@ shell's ``PATH``. .venv\Scripts\activate +.. tab:: Windows (PowerShell) + + .. code-block:: powershell + + .venv\Scripts\Activate.ps1 + To confirm the virtual environment is activated, check the location of your Python interpreter: @@ -105,20 +111,15 @@ Python interpreter: where python -While the virtual environment is active, the above command will output a -filepath that includes the ``.venv`` directory, by ending with the following: - -.. tab:: Unix/macOS - - .. code-block:: bash - - .venv/bin/python +.. tab:: Windows (PowerShell) -.. tab:: Windows + .. code-block:: powershell - .. code-block:: bat + (Get-Command python).Source - .venv\Scripts\python +While the virtual environment is active, the above command will output a +filepath that includes the ``.venv`` directory, ending with ``.venv/bin/python`` +on Unix/macOS or ``.venv\Scripts\python.exe`` on Windows. While a virtual environment is activated, pip will install packages into that