pythondockerpip

What is pip's `--no-cache-dir` good for?


I've recently seen the --no-cache-dir being used in a Docker file. I've never seen that flag before and the help is not explaining it:

 --no-cache-dir              Disable the cache.
  1. Question: What is cached?
  2. Question: What is the cache used for?
  3. Question: Why would I want to disable it?

Solution

    1. Cached is: store away in hiding or for future use
    2. Used for
    1. Possible Reason you might want to disable cache:

    Links to documentation

    https://pip.pypa.io/en/stable/topics/caching