Skip to content

Commit 5d5d181

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 5d5d181

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. \n"
160+
"Note that the resulting installation may "
161+
"contain scripts and other resources which reference the "
162+
"Python interpreter of pip, and not that of ``--prefix``. \n"
163+
"See also the ``pip --python`` option if the intention is to "
164+
"install packages into another (possibly pip-free) environment."
160165
),
161166
)
162167

0 commit comments

Comments
 (0)