SiftMac
Is it safe to delete? · Package caches · Updated 21 November 2026

Is it safe to delete ~/Library/Caches/pip?

By Mohit Nippanikar, who makes SiftMac

The short answer
On this page
  1. What pip caches
  2. Where it is
  3. How big it gets
  4. How to clear it
  5. What happens after
  6. Python’s other big folders
  7. Questions

1. What pip caches

pip keeps two caches in one folder. Its documentation describes them like this:

By default, every pip you run as your user shares this one folder, whichever Python or virtual environment it belongs to. pip treats the layout inside as an implementation detail that can change between versions, which is one more reason to clear it with pip’s own command rather than by picking through it.

2. Where it is

~/Library/Caches/pip

That’s the default on macOS; pip also respects XDG_CACHE_HOME if you’ve set it. To be sure, ask the pip you actually use:

python3 -m pip cache dir

3. How big it gets

It grows with every package and version you install, across all projects and environments, and packages that ship large wheels add the most. pip can describe its own cache:

python3 -m pip cache info
du -sh ~/Library/Caches/pip

pip cache info reports the HTTP and wheel parts separately, and pip cache list names the wheels it built.

4. How to clear it

With no pip install running:

python3 -m pip cache purge

That clears all files from both the wheel and the HTTP cache. To remove only one package’s wheels instead, for example one you suspect was built wrong, use remove with its name:

python3 -m pip cache remove numpy

Running pip as python3 -m pip makes sure you reach the pip of the Python you mean. Deleting the folder’s contents in Finder works too; empty the Trash afterwards to get the space back.

5. What happens after

6. Python’s other big folders

Python leaves other large folders behind, each with its own answer: virtual environments in old projects, uv’s cache if you use uv, conda’s packages and environments, and models downloaded by AI libraries, covered in the AI files guide.

Questions

Does pip cache purge uninstall my packages?

No. It only empties the cache. Installed packages stay in your Python and your virtual environments, and keep working.

Is ~/Library/Caches/pip shared by every Python on my Mac?

By default, yes. The cache belongs to your user account, so the pip in each virtual environment and each Python version reads and writes the same folder unless one is configured otherwise.

Can I clear pip’s cache while my code is running?

Yes. Running Python code never reads the cache; only pip install does. Just don’t clear it in the middle of an install.

Can I delete the old http folder inside pip’s cache?

Yes. pip 23.3 moved its HTTP cache to a new folder, and pip’s docs say you may delete the old http one once you no longer use older pip versions.

How SiftMac handles it. Its App caches category lists ~/Library/Caches/pip as Python packages (pip) with a Rebuilds verdict, ticked by default with the other caches, and clears what’s inside while keeping the folder. Old projects’ virtual environments are listed separately, under Developer files.

Download SiftMac · scanning is free, and so is your first 2 GB of cleaning · See how it works