mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Merge pull request #878 from anothernode/update-pip-caching-info
Update information about pip caching
This commit is contained in:
@@ -96,9 +96,14 @@ that you use. For example, you may be using the ``requests`` library in a lot
|
|||||||
of different projects.
|
of different projects.
|
||||||
|
|
||||||
It is surely unnecessary to re-download the same packages/libraries each time
|
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).
|
you start working on a new project (and in a new virtual environment as a
|
||||||
Fortunately, you can configure pip in such a way that it tries to reuse already
|
result). Fortunately, starting with version 6.0, pip provides an `on-by-default
|
||||||
installed packages.
|
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
|
On UNIX systems, you can add the following line to your :file:`.bashrc` or
|
||||||
:file:`.bash_profile` file.
|
:file:`.bash_profile` file.
|
||||||
|
|||||||
Reference in New Issue
Block a user