Important

Did this article help?

We are currently doing research to improve pip’s documentation and would love your feedback. Please email us &body=%0A%20%20%20%200.%20Document:%20reference/pip_config.%20Page%20URL:%20https:/%20%0A%0A%20%20%20%201.%20What%20problem%20were%20you%20trying%20to%20solve%20when%20you%20came%20to%20this%20page?%20%0A%0A%20%20%20%202.%20What%20content%20was%20useful?%20%0A%0A%20%20%20%203.%20What%20content%20was%20not%20useful?) and let us know why you came to this page and what on it helped you and what did not. (Read more about this research)

pip config

Usage

Unix/macOS

  1. python -m pip config [<file-option>] list
  2. python -m pip config [<file-option>] [--editor <editor-path>] edit
  3. python -m pip config [<file-option>] get name
  4. python -m pip config [<file-option>] set name value
  5. python -m pip config [<file-option>] unset name
  6. python -m pip config [<file-option>] debug

Windows

  1. py -m pip config [<file-option>] list
  2. py -m pip config [<file-option>] [--editor <editor-path>] edit
  3. py -m pip config [<file-option>] get name
  4. py -m pip config [<file-option>] set name value
  5. py -m pip config [<file-option>] unset name
  6. py -m pip config [<file-option>] debug

Description

Manage local and global configuration.

Subcommands:

  • list: List the active configuration (or from the file specified)

  • edit: Edit the configuration file in an editor

  • get: Get the value associated with name

  • set: Set the name=value

  • unset: Unset the value associated with name

  • debug: List the configuration files and values defined under them

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 on the to the user file by default.

Options

--editor <editor>

Editor to use to edit the file. Uses VISUAL or EDITOR environment variables if not provided.

--global

Use the system-wide configuration file only

--user

Use the user configuration file only

--site

Use the current environment configuration file only

Important

Did this article help?

We are currently doing research to improve pip’s documentation and would love your feedback. Please email us &body=%0A%20%20%20%200.%20Document:%20reference/pip_config.%20Page%20URL:%20https:/%20%0A%0A%20%20%20%201.%20What%20problem%20were%20you%20trying%20to%20solve%20when%20you%20came%20to%20this%20page?%20%0A%0A%20%20%20%202.%20What%20content%20was%20useful?%20%0A%0A%20%20%20%203.%20What%20content%20was%20not%20useful?) and let us know:

  1. What problem were you trying to solve when you came to this page?

  2. What content was useful?

  3. What content was not useful?