Cache Pip package downloads locally

You can easily cache downloaded Python packages locally when they are installed via Pip. Next time you install one of those dependencies, Pip will use the locally cached copy instead of connecting to PyPi.

mkdir -p ~/.pip_download_cache
echo -e "[global]\ndownload-cache = ~/.pip_download_cache" >> ~/.pip/pip.conf


Leave a Reply

Your email address will not be published. Required fields are marked *