Clear the local pip cache.
Section: Wheelhouse and offline patterns
Purge pip cache
bash
bash
python -m pip cache purgeExplanation
Useful when stale cache state may be causing confusion.
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 Wheelhouse and offline patterns
Install only from a local wheelhouse
Install using local artifacts and no package index.
Install a requirements file
Install project dependencies from requirements.txt.
Editable install of current project
Install the current project in editable mode.
Show package install location
Display metadata and install location for a package.