PIP-CONFIG(1)

πŸ“¦
version 26.0.1 Β· 4 versions
, in fedora 44

πŸ’– 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 editor
  • get: Get the value associated with command.option
  • set: Set the command.option=value
  • unset: Unset the value associated with command.option
  • debug: 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 for pip download commands πŸ‘‘

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 the VISUAL or EDITOR environment 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 πŸ‘‘


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