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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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_CACHEdirectory. For instance, I now have quite a few Django packages.virtualenvson the airplane, but it’s still great.