Skip to content

Commit 6a2d9ce

Browse files
committed
Make the PowerShell usage consistent within that guide section
1 parent 00cf769 commit 6a2d9ce

1 file changed

Lines changed: 12 additions & 16 deletions

File tree

‎source/guides/installing-using-pip-and-virtual-environments.rst‎

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ shell's ``PATH``.
9090
9191
.venv\Scripts\activate
9292
93+
.. tab:: Windows (PowerShell)
94+
95+
.. code-block:: powershell
96+
97+
.venv\Scripts\Activate.ps1
98+
9399
To confirm the virtual environment is activated, check the location of your
94100
Python interpreter:
95101

@@ -105,25 +111,15 @@ Python interpreter:
105111
106112
where python
107113
108-
..tab:: Windows (PowerShell)
109-
110-
.. code-block:: bat
111-
Get-Command python
114+
.. tab:: Windows (PowerShell)
112115

113-
While the virtual environment is active, the above command will output a
114-
filepath that includes the ``.venv`` directory, by ending with the following:
116+
.. code-block:: powershell
115117
116-
.. tab:: Unix/macOS
118+
(Get-Command python).Source
117119
118-
.. code-block:: bash
119-
120-
.venv/bin/python
121-
122-
.. tab:: Windows
123-
124-
.. code-block:: bat
125-
126-
.venv\Scripts\python
120+
While the virtual environment is active, the above command will output a
121+
filepath that includes the ``.venv`` directory, ending with ``.venv/bin/python``
122+
on Unix/macOS or ``.venv\Scripts\python.exe`` on Windows.
127123

128124

129125
While a virtual environment is activated, pip will install packages into that

0 commit comments

Comments
 (0)