Skip to content

Commit

Permalink
Document how to run under pipx run (#1951)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed Aug 4, 2023
1 parent 2cdd69d commit 9e4aeff
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Expand Up @@ -34,9 +34,11 @@ The `pip-compile` command lets you compile a `requirements.txt` file from
your dependencies, specified in either `pyproject.toml`, `setup.cfg`,
`setup.py`, or `requirements.in`.

Run it with `pip-compile` or `python -m piptools compile`. If you use
multiple Python versions, you can also run `py -X.Y -m piptools compile` on
Windows and `pythonX.Y -m piptools compile` on other systems.
Run it with `pip-compile` or `python -m piptools compile` (or
`pipx run --spec pip-tools pip-compile` if `pipx` was installed with the
appropriate Python version). If you use multiple Python versions, you can also
run `py -X.Y -m piptools compile` on Windows and `pythonX.Y -m piptools compile`
on other systems.

`pip-compile` should be run from the same virtual environment as your
project so conditional dependencies that require a specific Python version,
Expand Down

0 comments on commit 9e4aeff

Please sign in to comment.