python -m pip config listUseful when debugging unexpected index URLs, trusted hosts, or cache behavior.
pip configuration, cache management, network troubleshooting, verbose logs, and environment diagnostics.
python -m pip config listUseful when debugging unexpected index URLs, trusted hosts, or cache behavior.
python -m pip config set global.index-url https://pypi.org/simpleWrites a persistent config value so you do not need to pass `--index-url` each time.
Write a configuration value in the site config scope.
python -m pip config --site set global.timeout 60Scope lets you target site, user, or global config files.
python -m pip cache dirHelpful when inspecting what pip has cached between runs.
python -m pip cache infoUseful for CI tuning and disk usage review.
python -m pip cache listLets you inspect which packages are already cached locally.
python -m pip cache remove requestsUseful if you suspect a stale or corrupted cached artifact.
python -m pip cache purgeA broad reset option when debugging package caching problems.
Increase output detail for troubleshooting.
python -m pip install -vvv requestsThree `v` flags surface detailed resolver and download logs.
Print environment and compatibility diagnostics.
python -m pip debugUseful for investigating interpreter tags, platforms, and config behavior.
Set a higher request timeout for slow networks.
python -m pip install --default-timeout=120 -r requirements.txtHelpful when downloads fail due to slow or unstable connectivity.
Configure retry attempts for flaky network requests.
python -m pip install --retries 10 requestsUseful in unreliable CI networks or remote environments.
python -m pip install --no-cache-dir requestsHelpful when verifying fresh downloads or working around a cache issue.