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 type of progress to be displayed
80 [off|on|ascii|pretty|emoji] (default: 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 --ignore-requires-python
92 Ignore the Requires-Python information.
93
94 -d, --dest <dir>
95 Download packages into <dir>.
96
97 --platform <platform>
98 Only use wheels compatible with <platform>. Defaults to the
99 platform of the running system. Use this option multiple times
100 to specify multiple platforms supported by the target inter‐
101 preter.
102
103 --python-version <python_version>
104 The Python interpreter version to use for wheel and "Re‐
105 quires-Python" compatibility checks. Defaults to a version de‐
106 rived from the running interpreter. The version can be specified
107 using up to three dot-separated integers (e.g. "3" for 3.0.0,
108 "3.7" for 3.7.0, or "3.7.3"). A major-minor version can also be
109 given as a string without dots (e.g. "37" for 3.7.0).
110
111 --implementation <implementation>
112 Only use wheels compatible with Python implementation <implemen‐
113 tation>, e.g. 'pp', 'jy', 'cp', or 'ip'. If not specified, then
114 the current interpreter implementation is used. Use 'py' to
115 force implementation-agnostic wheels.
116
117 --abi <abi>
118 Only use wheels compatible with Python abi <abi>, e.g.
119 'pypy_41'. If not specified, then the current interpreter abi
120 tag is used. Use this option multiple times to specify multiple
121 abis supported by the target interpreter. Generally you will
122 need to specify --implementation, --platform, and --python-ver‐
123 sion when using this option.
124
125 --no-clean
126 Don't clean up build directories.
127
128
130 pip developers
131
133 The pip developers
134
135
136
137
13821.3 Jan 21, 2022 PIP-DOWNLOAD(1)