Tuesday, July 2, 2013

Cache Pip Downloads

Working with virtualenvwrapper makes python development so clean. And I found you can speed up installing common libraries in your different projects by telling pip to cache the downloads. Easy peasy lemon sqeezey!

export PIP_DOWNLOAD_CACHE=$HOME/.pip-download-cache

Now anytime I pip install anything the package gets cached locally so I won't have to fetch it again.

No comments:

Post a Comment