1PIP-DOWNLOAD(1) pip PIP-DOWNLOAD(1)
2
3
4
6 pip-download - description of pip download command
7
9 Download packages from:
10
11 • PyPI (and other indexes) using requirement specifiers.
12
13 • VCS project urls.
14
15 • Local project directories.
16
17 • Local or remote source archives.
18
19 pip also supports downloading from "requirements files", which provide
20 an easy way to specify a whole environment to be downloaded.
21
22
24 python -m pip download [options] <requirement specifier> [package-index-options] ...
25 python -m pip download [options] -r <requirements file> [package-index-options] ...
26 python -m pip download [options] <vcs project url> ...
27 python -m pip download [options] <local project path> ...
28 python -m pip download [options] <archive url/path> ...
29
31 -c, --constraint <file>
32 Constrain versions using the given constraints file. This option
33 can be used multiple times.
34
35 -r, --requirement <file>
36 Install from the given requirements file. This option can be
37 used multiple times.
38
39 --no-deps
40 Don't install package dependencies.
41
42 --global-option <options>
43 Extra global options to be supplied to the setup.py call before
44 the install or bdist_wheel command.
45
46 --no-binary <format_control>
47 Do not use binary packages. Can be supplied multiple times, and
48 each time adds to the existing value. Accepts either ":all:" to
49 disable all binary packages, ":none:" to empty the set (notice
50 the colons), or one or more package names with commas between
51 them (no colons). Note that some packages are tricky to compile
52 and may fail to install when this option is used on them.
53
54 --only-binary <format_control>
55 Do not use source packages. Can be supplied multiple times, and
56 each time adds to the existing value. Accepts either ":all:" to
57 disable all source packages, ":none:" to empty the set, or one
58 or more package names with commas between them. Packages without
59 binary distributions will fail to install when this option is
60 used on them.
61
62 --prefer-binary
63 Prefer older binary packages over newer source packages.
64
65 --src <dir>
66 Directory to check out editable projects into. The default in a
67 virtualenv is "<venv path>/src". The default for global installs
68 is "<current dir>/src".
69
70 --pre Include pre-release and development versions. By default, pip
71 only finds stable versions.
72
73 --require-hashes
74 Require a hash to check each requirement against, for repeatable
75 installs. This option is implied when any package in a require‐
76 ments file has a --hash option.
77
78 --progress-bar <progress_bar>
79 Specify whether the progress bar should be used [on, off] (de‐
80 fault: on)
81
82 --no-build-isolation
83 Disable isolation when building a modern source distribution.
84 Build dependencies specified by PEP 518 must be already in‐
85 stalled if this option is used.
86
87 --use-pep517
88 Use PEP 517 for building source distributions (use
89 --no-use-pep517 to force legacy behaviour).
90
91 --check-build-dependencies
92 Check the build dependencies when PEP517 is used.
93
94 --ignore-requires-python
95 Ignore the Requires-Python information.
96
97 -d, --dest <dir>
98 Download packages into <dir>.
99
100 --platform <platform>
101 Only use wheels compatible with <platform>. Defaults to the
102 platform of the running system. Use this option multiple times
103 to specify multiple platforms supported by the target inter‐
104 preter.
105
106 --python-version <python_version>
107 The Python interpreter version to use for wheel and "Re‐
108 quires-Python" compatibility checks. Defaults to a version de‐
109 rived from the running interpreter. The version can be specified
110 using up to three dot-separated integers (e.g. "3" for 3.0.0,
111 "3.7" for 3.7.0, or "3.7.3"). A major-minor version can also be
112 given as a string without dots (e.g. "37" for 3.7.0).
113
114 --implementation <implementation>
115 Only use wheels compatible with Python implementation <implemen‐
116 tation>, e.g. 'pp', 'jy', 'cp', or 'ip'. If not specified, then
117 the current interpreter implementation is used. Use 'py' to
118 force implementation-agnostic wheels.
119
120 --abi <abi>
121 Only use wheels compatible with Python abi <abi>, e.g.
122 'pypy_41'. If not specified, then the current interpreter abi
123 tag is used. Use this option multiple times to specify multiple
124 abis supported by the target interpreter. Generally you will
125 need to specify --implementation, --platform, and --python-ver‐
126 sion when using this option.
127
128 --no-clean
129 Don't clean up build directories.
130
131
133 pip developers
134
136 The pip developers
137
138
139
140
14122.2 Nov 21, 2022 PIP-DOWNLOAD(1)