Important

Did this article help?

We are currently doing research to improve pip’s documentation and would love your feedback. Please email us &body=%0A%20%20%20%200.%20Document:%20reference/pip_cache.%20Page%20URL:%20https:/%20%0A%0A%20%20%20%201.%20What%20problem%20were%20you%20trying%20to%20solve%20when%20you%20came%20to%20this%20page?%20%0A%0A%20%20%20%202.%20What%20content%20was%20useful?%20%0A%0A%20%20%20%203.%20What%20content%20was%20not%20useful?) and let us know why you came to this page and what on it helped you and what did not. (Read more about this research)

pip cache

Usage

Unix/macOS

  1. python -m pip cache dir
  2. python -m pip cache info
  3. python -m pip cache list [<pattern>] [--format=[human, abspath]]
  4. python -m pip cache remove <pattern>
  5. python -m pip cache purge

Windows

  1. py -m pip cache dir
  2. py -m pip cache info
  3. py -m pip cache list [<pattern>] [--format=[human, abspath]]
  4. py -m pip cache remove <pattern>
  5. py -m pip cache purge

Description

Inspect and manage pip’s wheel cache.

Subcommands:

  • dir: Show the cache directory.

  • info: Show information about the cache.

  • list: List filenames of packages stored in the cache.

  • remove: Remove one or more package from the cache.

  • purge: Remove all items from the cache.

<pattern> can be a glob expression or a package name.

Options

--format <list_format>

Select the output format among: human (default) or abspath

Important

Did this article help?

We are currently doing research to improve pip’s documentation and would love your feedback. Please email us &body=%0A%20%20%20%200.%20Document:%20reference/pip_cache.%20Page%20URL:%20https:/%20%0A%0A%20%20%20%201.%20What%20problem%20were%20you%20trying%20to%20solve%20when%20you%20came%20to%20this%20page?%20%0A%0A%20%20%20%202.%20What%20content%20was%20useful?%20%0A%0A%20%20%20%203.%20What%20content%20was%20not%20useful?) and let us know:

  1. What problem were you trying to solve when you came to this page?

  2. What content was useful?

  3. What content was not useful?