I install a lot of the same packages in different virtualenv environments. Is there a way that I can download a package once and then have pip install from a local cache?
This would reduce download bandwidth and time.
pipvirtualenv
I install a lot of the same packages in different virtualenv environments. Is there a way that I can download a package once and then have pip install from a local cache?
This would reduce download bandwidth and time.
Best Answer
Updated Answer 19-Nov-15
According to the Pip documentation:
Therefore, the updated answer is to just use pip with its defaults if you want a download cache.
Original Answer
From the pip news, version 0.1.4:
To take advantage of this, I've added the following to my
~/.bash_profile
:or, if you are on a Mac:
Notes
PIP_DOWNLOAD_CACHE
directory. For instance, I now have quite a few Django packages.virtualenvs
on the airplane, but it's still great.