Thursday, 14 May 2026

Pip cache purge: if half full + half empty, pip might need an update

Life before pip cache purge

   225M  /home/janca/.cache/pip/wheels
   336K  /home/janca/.cache/pip/selfcheck
   2.9G  /home/janca/.cache/pip/http
   2.7G  /home/janca/.cache/pip/http-v2
   5.8G  /home/janca/.cache/pip

Life after pip cache purge

   3.9M  /home/janca/.cache/pip/wheels
   336K  /home/janca/.cache/pip/selfcheck
   17M   /home/janca/.cache/pip/http
   2.7G  /home/janca/.cache/pip/http-v2
   2.8G  /home/janca/.cache/pip

... yes, but 🥲 ...

Update: Well, shame on me, all I needed (badly) was a pip update

   $ sudo pip install --upgrade pip
   Requirement already satisfied: pip in /usr/lib/python3/dist-packages (22.0.2)
   Collecting pip
     Downloading pip-26.1.1-py3-none-any.whl (1.8 MB)

Now it all seems fine 

   336K  /home/janca/.cache/pip/selfcheck
   17M   /home/janca/.cache/pip/http-v2
   17M   /home/janca/.cache/pip