Skip to content

Commit a2b0eb6

Browse files
committed
Document the limitations of the pip install --prefix argument, and cross-reference the --python flag, which can be harder to find due to it being a pip level argument
1 parent 56e5fa3 commit a2b0eb6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pip/_internal/commands/install.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,12 @@ def add_options(self) -> None:
156156
default=None,
157157
help=(
158158
"Installation prefix where lib, bin and other top-level "
159-
"folders are placed"
159+
"folders are placed. Note that the resulting installation may "
160+
"contain scripts and other resources which reference the "
161+
"Python interpreter of pip, and not that of ``--prefix``. "
162+
"See also the ``--python`` option if the intention is to "
163+
"install packages into another (possibly pip-free) "
164+
"environment."
160165
),
161166
)
162167

0 commit comments

Comments
 (0)