Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions docs/dev/pip-virtualenv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,14 @@ that you use. For example, you may be using the ``requests`` library in a lot
of different projects.

It is surely unnecessary to re-download the same packages/libraries each time
you start working on a new project (and in a new virtual environment as a result).
Fortunately, you can configure pip in such a way that it tries to reuse already
installed packages.
you start working on a new project (and in a new virtual environment as a
result). Fortunately, starting with version 6.0, pip provides an `on-by-default
caching mechanism
<https://pip.pypa.io/en/stable/reference/pip_install/#caching>`_ that doesn't
need any configuration.

When using older versions, you can configure pip in such a way that it tries to
reuse already installed packages, too.

On UNIX systems, you can add the following line to your :file:`.bashrc` or
:file:`.bash_profile` file.
Expand Down