Persist an index URL in pip config.
Section: Configuration
Set global index URL
bash
bash
python -m pip config set global.index-url https://pypi.org/simpleExplanation
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