@@ -19,20 +19,24 @@ and how they are related to pip's various command line options.
19
19
20
20
## Configuration Files
21
21
22
- Configuration files can change the default values for command line option .
23
- They are written using a standard INI style configuration files .
22
+ Configuration files can change the default values for command line options .
23
+ The files are written using standard INI format .
24
24
25
25
pip has 3 "levels" of configuration files:
26
26
27
27
- ` global ` : system-wide configuration file, shared across users.
28
28
- ` user ` : per-user configuration file.
29
29
- ` site ` : per-environment configuration file; i.e. per-virtualenv.
30
30
31
+ Additionally, environment variables can be specified which will override any of the above.
32
+
31
33
### Location
32
34
33
35
pip's configuration files are located in fairly standard locations. This
34
36
location is different on different operating systems, and has some additional
35
- complexity for backwards compatibility reasons.
37
+ complexity for backwards compatibility reasons. Note that if user config files
38
+ exist in both the legacy and current locations, values in the current file
39
+ will override values in the legacy file.
36
40
37
41
``` {tab} Unix
38
42
88
92
### ` PIP_CONFIG_FILE `
89
93
90
94
Additionally, the environment variable ` PIP_CONFIG_FILE ` can be used to specify
91
- a configuration file that's loaded first, and whose values are overridden by
92
- the values set in the aforementioned files. Setting this to {any}` os.devnull `
93
- disables the loading of _ all_ configuration files.
95
+ a configuration file that's loaded last, and whose values override the values
96
+ set in the aforementioned files. Setting this to {any}` os.devnull `
97
+ disables the loading of _ all_ configuration files. Note that if a file exists
98
+ at the location that this is set to, the user config file will not be loaded.
94
99
95
100
(config-precedence)=
96
101
@@ -99,10 +104,10 @@ disables the loading of _all_ configuration files.
99
104
When multiple configuration files are found, pip combines them in the following
100
105
order:
101
106
102
- - ` PIP_CONFIG_FILE ` , if given.
103
107
- Global
104
108
- User
105
109
- Site
110
+ - ` PIP_CONFIG_FILE ` , if given.
106
111
107
112
Each file read overrides any values read from previous files, so if the
108
113
global timeout is specified in both the global file and the per-user file
0 commit comments