@@ -17,9 +17,17 @@ Quick setup
17
17
-------------------------
18
18
Check if you already have pip installed by running:
19
19
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
21
29
22
- pip --version
30
+ C:\> py -m pip --version
23
31
24
32
See :doc: `installing pip <installing >` for more information, or to troubleshoot
25
33
any problems.
@@ -80,9 +88,17 @@ GitHub.
80
88
81
89
For example, to install a specific commit from the Django project, run:
82
90
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
84
100
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
86
102
87
103
See :ref: `VCS Support ` for more information.
88
104
@@ -114,9 +130,17 @@ Many Python projects use a requirements.txt file to specify the list of packages
114
130
that need to be installed for the project to run. To install the packages
115
131
listed in the file, run:
116
132
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
118
142
119
- pip install -r requirements.txt
143
+ C:\> py -m pip install -r requirements.txt
120
144
121
145
See :ref: `requirements files <Requirements Files >` for more information.
122
146
0 commit comments