Pip Config

Brandon Rozek

April 10, 2020

If you find yourself added flags to every pip command, consider adding those flag’s to a pip configuration file.

In order of importance, the configuration files will be located

It is structured as an INI file where the blocks are the commands (global indicates all commands)

For an example, we can set the timeout for all commands to 60 seconds, but the timeout for the freeze command to only 10 seconds.

timeout = 60

timeout = 10

Boolean flags are set by assigning a value of true or yes to them

ignore-installed = true

For operating in an offline environment,

no-index = true
find-links = /path/to/wheels