File tree 1 file changed +21
-1
lines changed
1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ Specifiers`
53
53
54
54
py -m pip install SomePackage # latest version
55
55
py -m pip install SomePackage==1.0.4 # specific version
56
- py -m pip install ' SomePackage>=1.0.4' # minimum version
56
+ py -m pip install ' SomePackage>=1.0.4' # minimum version
57
57
58
58
For more information and examples, see the :ref: `pip install ` reference.
59
59
@@ -271,6 +271,26 @@ To install directly from a wheel archive:
271
271
272
272
py -m pip install SomePackage-1.0-py2.py3-none-any.whl
273
273
274
+ To include optional dependencies provided in the ``provides_extras ``
275
+ metadata in the wheel, you must add quotes around the install target
276
+ name:
277
+
278
+ .. tab :: Unix/macOS
279
+
280
+ .. code-block :: shell
281
+
282
+ python -m pip install ' ./somepackage-1.0-py2.py3-none-any.whl[my-extras]'
283
+
284
+ .. tab :: Windows
285
+
286
+ .. code-block :: shell
287
+
288
+ py -m pip install ' ./somepackage-1.0-py2.py3-none-any.whl[my-extras]'
289
+
290
+ .. note ::
291
+
292
+ In the future, the ``path[extras] `` syntax may become deprecated. It is
293
+ recommended to use PEP 508 syntax wherever possible.
274
294
275
295
For the cases where wheels are not available, pip offers :ref: `pip wheel ` as a
276
296
convenience, to build wheels for all your requirements and dependencies.
You can’t perform that action at this time.
0 commit comments