CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 02:16:08 GMT
server: Fly/6f91d33b9d (2025-10-08)
content-type: text/html; charset=utf-8
content-encoding: gzip
via: 2 fly.io, 2 fly.io
fly-request-id: 01K7B38BZ5QHZ1F4P2BC377T1R-bom
The location of the pip cache directory | Simon Willison’s TILs
The location of the pip cache directory
pip
uses a cache to avoid downloading packages again:
% pip install lxml
Collecting lxml
Using cached lxml-4.9.2-cp311-cp311-macosx_13_0_arm64.whl
Installing collected packages: lxml
Successfully installed lxml-4.9.2
The pip cache dir
command can be used to find the location of that cache on your system:
% pip cache dir
/Users/simon/Library/Caches/pip
Wheels are cached in pip/wheels
- in a nested set of folders based on a hash, for example:
wheels/fb/5b/f7/0a27880b4a007daeff53a196d01901627f640392b7e76e76e5/lxml-4.9.2-cp311-cp311-macosx_13_0_arm64.whl
I found this pattern worked for deleting files from the cache:
cd $(pip cache dir)
find wheels | grep lxml | xargs rm
Related
- python Installing lxml for Python on an M1/M2 Mac - 2023-01-27
- python macOS Catalina sort-of includes Python 3 - 2020-04-21
- github-actions actions/setup-python caching for setup.py projects - 2022-11-28
- macos Installing Python on macOS with the official Python installer - 2022-02-28
- python Using C_INCLUDE_PATH to install Python packages - 2021-12-09
- macos Running pip install -e .[test] in zsh on macOS Catalina - 2020-04-21
- python Freezing requirements with pip-tools - 2022-07-14
- python CLI tools hidden in the Python standard library - 2023-06-28
- python Quickly testing code in a different Python version using pyenv - 2023-07-10
- homebrew Upgrading Python Homebrew packages using pip - 2020-10-14
Created 2023-04-28T11:58:14-07:00 · Edit