Is it safe to delete ~/.cache/pip directory

后端 未结 2 1708
无人及你
无人及你 2020-12-16 12:49

I have limited space on my server, and I am thinking to delete the cache of the PIP. I am not sure if its safe to delete or not.

ls  ~/.cache/pip/

2条回答
  •  借酒劲吻你
    2020-12-16 13:16

    Since pip 20.1b1, which was released on 21 April 2020 and "added pip cache command for inspecting/managing pip’s wheel cache", you no longer need to. Instead, you can issue this command:

    pip cache purge
    

    The reference guide is here:
    https://pip.pypa.io/en/stable/reference/pip_cache/
    The corresponding pull request is here.

提交回复
热议问题