pip Config, Cache, and Debugging Cheat Sheet/Set per-site config file value

Write a configuration value in the site config scope.

Section: Configuration

Set per-site config file value

bash
bash
python -m pip config --site set global.timeout 60
Explanation

Scope lets you target site, user, or global config files.

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 global index URL
Persist an index URL in pip config.
OpenIn sheetbashsame section
Increase network timeout
Set a higher request timeout for slow networks.
OpenIn sheetbash1 tag match
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.