PIP-CONFIG(1)
π PIP-CONFIG(1) π
okay bestie, welcome to the pip config manual page β yeah it's from the pip manual fam, and it's literally the glow-up your pip setup has been waiting for. sit down, grab a strawberry π, we're doing config.
β¨ NAME β¨
pip-config β the rundown on the pip config command, aka the place where you tell pip how to behave forever and ever π
πΈ DESCRIPTION πΈ
Manage local and global configuration. that's the whole vibe. you're writing down rules so pip remembers them later. no cap.
The subcommands, and yes you need to know all of them:
list: List the active configuration (or from the file specified)edit: Edit the configuration file in an editorget: Get the value associated withcommand.optionset: Set thecommand.option=valueunset: Unset the value associated withcommand.optiondebug: List the configuration files and values defined under them
okay so here's the part that actually matters π«Ά β configuration keys should be dot separated command and option name, with the special prefix "global" affecting any command. like, the way that works is:
pip config set global.index-url https://example.org/β this would configure the index url for all commands β¨pip config set download.timeout 10β this would configure a 10 second timeout only forpip downloadcommands π
so yeah, one little word at the front and it's giving global. iconic.
now, the file situation. listen up because this is the plot twist π:
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.
so basically: no flags + active venv + file actually exists = venv config gets it. anything else = user file. that's the default, periodt.
π USAGE π
python -m pip config [<file-option>] list
python -m pip config [<file-option>] [--editor <editor-path>] edit
python -m pip config [<file-option>] get command.option
python -m pip config [<file-option>] set command.option value
python -m pip config [<file-option>] unset command.option
python -m pip config [<file-option>] debug
like. it's giving versatility. every subcommand, every mood π¦
π OPTIONS π
--editor <editor>β the editor to use to edit the file. if you don't hand one over, it uses theVISUALorEDITORenvironment variables instead. (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)
note the word "only" on those three, bestie β that's not decoration, that's the whole point. no mixing. pick a lane ππ¨
π Author π
pip developers β the collective. the main characters. we stan π
β Copyright β
The pip developers
and that's the page!! π§ you now know how to list, edit, get, set, unset and debug your pip config like an absolute legend. go forth and set things. π₯
version 26.0 Β· dated Aug 26, 2026 Β· mwah, bye bestie πππ¦
π¦ where this page comes from
- fedora 44: python3-pip 26.0.1-3.fc44 Β· MIT AND Python-2.0.1 AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MPL-2.0 AND (Apache-2.0 OR BSD-2-Clause)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms