Reclaim Disk from pip, conda and Python Caches on a Mac
Python tooling caches pile up fast: pip (~/Library/Caches/pip), conda's package cache, __pycache__ folders, and the Hugging Face cache for ML work. All are re-downloadable or regenerated, so they're safe to clear — pip cache purge, conda clean --all, and removing __pycache__ can reclaim gigabytes on a data or ML Mac.
Where Python hides space
| Source | Location | Clear with |
|---|---|---|
| pip cache | ~/Library/Caches/pip | pip cache purge |
| conda packages | ~/miniconda3/pkgs | conda clean --all |
| __pycache__ | scattered in projects | find . -name __pycache__ -exec rm -rf {} + |
| Hugging Face | ~/.cache/huggingface | see the AI-models guide |
Clear the safe ones
pip cache purge— wipes the wheel/download cache; re-downloads as needed.conda clean --all— removes unused packages, caches and tarballs.__pycache__folders regenerate on the next run — safe to delete.
Doing ML work? The Hugging Face cache is usually the single biggest folder — tens of gigabytes — and all re-downloadable.
The guided version
MacCleaner measures these Python and ML caches with real byte counts and marks them safe, so you can reclaim them without hunting across environments — recoverable until you empty. Pair with the developer cleanup guide for the full sweep.
Frequently asked questions
Is it safe to delete the pip cache?
Yes. pip cache purge clears cached downloads that pip re-fetches when needed. Nothing installed breaks — only future installs use a little more bandwidth.
Does conda clean --all break my environments?
No. It removes unused packages, tarballs and caches, not your active environments. It's the standard way to reclaim conda disk space.
Can I delete __pycache__ folders?
Yes — Python regenerates them automatically the next time it runs the code. They're pure cache.
Reclaim the space in two taps
MacCleaner scans read-only, shows every file before anything is touched, marks the safe groups, and lets you choose Trash or permanent. Free for up to 500 MB of cleanup a day.
Download for Mac