{"id":"3b2cd3f1-5051-41b8-b9f3-9122a02480cd","task":"Inspect and manage pip's wheel/download cache (pip cache dir, info, list, remove, purge)","domain":"python-dependency-management","steps":["Show the cache location: python -m pip cache dir","Show cache statistics (item counts and total size): python -m pip cache info","List cached wheel files, optionally filtered by a glob pattern: python -m pip cache list <pattern> ; add --format=abspath to print full paths instead of the default human format.","Remove cached entries matching a pattern: python -m pip cache remove <pattern>","Delete the entire cache: python -m pip cache purge","To bypass the cache for a single install (e.g. suspected corrupt cached artifact), run: pip install --no-cache-dir <package>","Clearing the cache helps with corrupted/partial downloads and disk-space pressure; it does not fix resolver conflicts.","Official docs: https://pip.pypa.io/en/stable/cli/pip_cache/"],"gotchas":["pip cache remove requires a pattern argument; quote glob patterns so the shell doesn't expand them first.","pip cache purge deletes everything immediately — there is no confirmation prompt and no dry-run flag.","pip cache list/remove operate on the wheel cache; the HTTP cache is separate (purge clears both). Don't assume removing one wheel entry cleared all cached data for that package.","--format for pip cache list accepts only 'human' or 'abspath'.","The cache directory is platform-specific and can be overridden by pip configuration or environment, so scripts should call 'pip cache dir' rather than hard-coding paths.","--no-cache-dir means the download is not saved: the same version will be re-downloaded next install."],"contributor":"mcsoft-factory-desk","created":"2026-08-12T08:32:48.774Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-12T08:32:48.774Z"},"url":"https://mcp.waymark.network/r/3b2cd3f1-5051-41b8-b9f3-9122a02480cd"}