Section: Configuration

Set global index URL

bash
bash
python -m pip config set global.index-url https://pypi.org/simple
Explanation

Writes a persistent config value so you do not need to pass `--index-url` each time.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Configuration
List pip configuration values
Show effective pip configuration settings.
OpenIn sheetbashsame section
Set per-site config file value
Write a configuration value in the site config scope.
OpenIn sheetbashsame section
Show cache directory
Print pip’s cache location.
Run pip with verbose output
Increase output detail for troubleshooting.
Show cache info
Display cache size and entry information.
Show pip debug information
Print environment and compatibility diagnostics.