We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b7955d + e399d7d commit 852deddCopy full SHA for 852dedd
news/11775.doc.rst
@@ -0,0 +1,2 @@
1
+Cross-reference the ``--python`` flag from the ``--prefix`` flag,
2
+and mention limitations of ``--prefix`` regarding script installation.
src/pip/_internal/commands/install.py
@@ -156,7 +156,12 @@ def add_options(self) -> None:
156
default=None,
157
help=(
158
"Installation prefix where lib, bin and other top-level "
159
- "folders are placed"
+ "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."
165
),
166
)
167
0 commit comments