pip config - pip documentation v23.3.2 (2024)

Table of Contents
Usage# Description# Options#

Toggle site navigation sidebar

Toggle table of contents sidebar

Back to top

Toggle table of contents sidebar

Usage#

python -m pip config [<file-option>] listpython -m pip config [<file-option>] [--editor <editor-path>] editpython -m pip config [<file-option>] get command.optionpython -m pip config [<file-option>] set command.option valuepython -m pip config [<file-option>] unset command.optionpython -m pip config [<file-option>] debug

py -m pip config [<file-option>] listpy -m pip config [<file-option>] [--editor <editor-path>] editpy -m pip config [<file-option>] get command.optionpy -m pip config [<file-option>] set command.option valuepy -m pip config [<file-option>] unset command.optionpy -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 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

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 https://example.org/” would configurethe 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 virtualenvironment configuration file is used if one is active and the fileexists. Otherwise, all modifications happen to the user file bydefault.

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

pip config - pip documentation v23.3.2 (2024)
Top Articles
Latest Posts
Article information

Author: Dr. Pierre Goyette

Last Updated:

Views: 5845

Rating: 5 / 5 (50 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Dr. Pierre Goyette

Birthday: 1998-01-29

Address: Apt. 611 3357 Yong Plain, West Audra, IL 70053

Phone: +5819954278378

Job: Construction Director

Hobby: Embroidery, Creative writing, Shopping, Driving, Stand-up comedy, Coffee roasting, Scrapbooking

Introduction: My name is Dr. Pierre Goyette, I am a enchanting, powerful, jolly, rich, graceful, colorful, zany person who loves writing and wants to share my knowledge and understanding with you.