Given a pip requirements file, how do you update a local cache of Python packages without installing anything or unnecessarily re-downloading packages that are currently up to date?
I've tried:
pip install --download="packages" --exists-action=w -r pip-requirements.txt
However, it seems to automatically redownload everything, even if the correct version has already been downloaded. How do I prevent this?
Also, what's the difference between --download=DIR
and --download-cache=DIR
? The docs aren't very clear, and provided descriptions sound almost identical. It seems implied that specifying --download=DIR
does not install anything whereas specifying --download-cache=DIR
may or may not install anything.