Skip to content

Commit c2dd64f

Browse files
committed
Hint to create a venv
1 parent 906d240 commit c2dd64f

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

content/packaging.rst

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,29 @@ Exercise 1
142142
To test a local pip install:
143143

144144
- Create a new folder outside of our example project
145-
- Create a new virtual environment (:ref:`dependency_management`)
145+
- Create a new virtual environment and activate it (more on this in :ref:`dependency_management`)
146+
147+
.. hint:: To create and activate a virtual environment
148+
:class: dropdown
149+
150+
.. tabs::
151+
152+
.. tab:: Unix/macOS
153+
154+
.. code-block:: bash
155+
156+
python -m venv .venv
157+
source .venv/bin/activate
158+
which python
159+
160+
.. tab:: Windows
161+
162+
.. code-block:: bat
163+
164+
python -m venv .venv
165+
.venv\Scripts\activate
166+
where python
167+
146168
- Install the example package from the project folder
147169
into the new environment::
148170

0 commit comments

Comments
 (0)