Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip-tools should be installed in the project's virtual environment #1023

Merged
merged 2 commits into from
Jan 30, 2020
Merged
Changes from 1 commit
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
12 changes: 9 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,24 @@ even when you've pinned them. `You do pin them, right?`_
Installation
============

As part of a Python project's environment tooling (similar to ``pip``), it's
recommended to install ``pip-tools`` in each project's `virtual environment`_:
Similar to ``pip``, ``pip-tools`` should be installed in each of your project's
`virtual environments`_:

.. code-block:: bash

$ source /path/to/venv/bin/activate
(venv)$ pip install pip-tools

``pip-sync`` needs to run in the same environment as
your project to identify which packages to install or upgrade. This is also
recommended for ``pip-compile`` so conditional dependencies that require a
specific Python version or other environment marker resolve relative to your
project's environment.

**Note**: all of the remaining example commands assume you've activated your
project's virtual environment.

.. _virtual environment: https://packaging.python.org/tutorials/installing-packages/#creating-virtual-environments
.. _virtual environments: https://packaging.python.org/tutorials/installing-packages/#creating-virtual-environments

Example usage for ``pip-compile``
=================================
Expand Down