pip cache

用法

python -m pip cache dir
python -m pip cache info
python -m pip cache list [<pattern>] [--format=[human, abspath]]
python -m pip cache remove <pattern>
python -m pip cache purge
py -m pip cache dir
py -m pip cache info
py -m pip cache list [<pattern>] [--format=[human, abspath]]
py -m pip cache remove <pattern>
py -m pip cache purge

描述

检查和管理 pip 的 wheel 缓存。

子命令

  • dir: 显示缓存目录。

  • info: 显示有关缓存的信息。

  • list: 列出存储在缓存中的软件包的文件名。

  • remove: 从缓存中删除一个或多个软件包。

  • purge: 从缓存中删除所有项目。

<pattern> 可以是 glob 表达式或软件包名称。

选项

--format <list_format>

从以下选项中选择输出格式:human(默认)或 abspath

(环境变量:PIP_FORMAT)