Skip to content

Commit f0e8d99

Browse files
committed
Add unix vs windows examples
1 parent 82ab60c commit f0e8d99

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

docs/html/quickstart.rst

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,17 @@ Quick setup
1717
-------------------------
1818
Check if you already have pip installed by running:
1919

20-
.. code-block:: console
20+
.. tab:: Unix/macOS
21+
22+
.. code-block:: console
23+
24+
$ python -m pip --version
25+
26+
.. tab:: Windows
27+
28+
.. code-block:: console
2129
22-
pip --version
30+
C:\> py -m pip --version
2331
2432
See :doc:`installing pip <installing>` for more information, or to troubleshoot
2533
any problems.
@@ -80,9 +88,17 @@ GitHub.
8088

8189
For example, to install a specific commit from the Django project, run:
8290

83-
.. code-block:: console
91+
.. tab:: Unix/macOS
92+
93+
.. code-block:: console
94+
95+
$ python -m pip install git+https://github.com/django/django.git@45dfb3641aa4d9828a7c5448d11aa67c7cbd7966
96+
97+
.. tab:: Windows
98+
99+
.. code-block:: console
84100
85-
pip install git+https://github.com/django/django.git@45dfb3641aa4d9828a7c5448d11aa67c7cbd7966
101+
C:\> py -m pip install git+https://github.com/django/django.git@45dfb3641aa4d9828a7c5448d11aa67c7cbd7966
86102
87103
See :ref:`VCS Support` for more information.
88104

@@ -114,9 +130,17 @@ Many Python projects use a requirements.txt file to specify the list of packages
114130
that need to be installed for the project to run. To install the packages
115131
listed in the file, run:
116132

117-
.. code-block:: console
133+
.. tab:: Unix/macOS
134+
135+
.. code-block:: console
136+
137+
$ python -m pip install -r requirements.txt
138+
139+
.. tab:: Windows
140+
141+
.. code-block:: console
118142
119-
pip install -r requirements.txt
143+
C:\> py -m pip install -r requirements.txt
120144
121145
See :ref:`requirements files <Requirements Files>` for more information.
122146

0 commit comments

Comments
 (0)