PIP-CONFIG(1) pip PIP-CONFIG(1)
NAME
pip-config - description of pip config command
DESCRIPTION
Manage local and global configuration.
Subcommands:
o list: List the active configuration (or from the file specified)
o edit: Edit the configuration file in an editor
o get: Get the value associated with command.option
o set: Set the command.option=value
o unset: Unset the value associated with command.option
o debug: List the configuration files and values defined under them
Configuration keys should be dot separated command and option name,
with the special prefix "global" affecting any command. For example,
"pip config set global.index-url " would
configure the index url for all commands, but "pip config set
download.timeout 10" would configure a 10 second timeout only for "pip
download" commands.
If none of --user, --global and --site are passed, a virtual
environment configuration file is used if one is active and the file
exists. Otherwise, all modifications happen to the user file by
default.
USAGE
python -m pip config [] list
python -m pip config [] [--editor ] edit
python -m pip config [] get command.option
python -m pip config [] set command.option value
python -m pip config [] unset command.option
python -m pip config [] debug
OPTIONS
--editor
Editor to use to edit the file. Uses VISUAL or EDITOR
environment variables if not provided.
(environment variable: PIP_EDITOR)
--global
Use the system-wide configuration file only
(environment variable: PIP_GLOBAL)
--user Use the user configuration file only
(environment variable: PIP_USER)
--site Use the current environment configuration file only
(environment variable: PIP_SITE)
Author
pip developers
Copyright
The pip developers
25.2 July 31, 2025 PIP-CONFIG(1)