Skip to content

Commit 02ad3a5

Browse files
developerdeveloper
authored andcommitted
docs: detailed information about the --platform and --python-version parameters of the download command is provided
1 parent 331400c commit 02ad3a5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/html/cli/pip_download.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,15 @@ constrained download requirement. If some of your dependencies are not
4747
available as binaries, you can build them manually for your target platform
4848
and let pip download know where to find them using ``--find-links``.
4949

50+
.. note::
51+
To determine the appropriate values for ``--python-version`` and ``--platform``, you can query the target system using the following commands:
5052

53+
- For the Python version, use :func:`sysconfig.get_python_version() <sysconfig.get_python_version>`.
54+
- For the platform, use :func:`sysconfig.get_platform() <sysconfig.get_platform>`.
55+
56+
Refer to the official Python documentation for more details:
57+
- `sysconfig.get_python_version() <https://docs.python.org/3/library/sysconfig.html#sysconfig.get_python_version>`_
58+
- `sysconfig.get_platform() <https://docs.python.org/3/library/sysconfig.html#sysconfig.get_platform>`_
5159

5260
Options
5361
=======

0 commit comments

Comments
 (0)