1PIP-CONFIG(1) pip PIP-CONFIG(1)
2
3
4
6 pip-config - description of pip config command
7
9 Manage local and global configuration.
10
11 Subcommands:
12
13 • list: List the active configuration (or from the file specified)
14
15 • edit: Edit the configuration file in an editor
16
17 • get: Get the value associated with command.option
18
19 • set: Set the command.option=value
20
21 • unset: Unset the value associated with command.option
22
23 • debug: List the configuration files and values defined under them
24
25 Configuration keys should be dot separated command and option name,
26 with the special prefix "global" affecting any command. For example,
27 "pip config set global.index-url https://example.org/" would configure
28 the index url for all commands, but "pip config set download.timeout
29 10" would configure a 10 second timeout only for "pip download" com‐
30 mands.
31
32 If none of --user, --global and --site are passed, a virtual environ‐
33 ment configuration file is used if one is active and the file exists.
34 Otherwise, all modifications happen to the user file by default.
35
36
38 python -m pip config [<file-option>] list
39 python -m pip config [<file-option>] [--editor <editor-path>] edit
40
41 python -m pip config [<file-option>] get command.option
42 python -m pip config [<file-option>] set command.option value
43 python -m pip config [<file-option>] unset command.option
44 python -m pip config [<file-option>] debug
45
47 --editor <editor>
48 Editor to use to edit the file. Uses VISUAL or EDITOR environ‐
49 ment variables if not provided.
50
51 --global
52 Use the system-wide configuration file only
53
54 --user Use the user configuration file only
55
56 --site Use the current environment configuration file only
57
58
60 pip developers
61
63 The pip developers
64
65
66
67
6823.2 Aug 04, 2023 PIP-CONFIG(1)