Skip to content

Commit d3c2b45

Browse files
committed
Be explicit about consequences of running as root
1 parent a33aed0 commit d3c2b45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pip/_internal/cli/req_command.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ def warn_if_run_as_root() -> None:
219219

220220
logger.warning(
221221
"Running pip as the 'root' user can result in broken permissions and "
222-
"conflicting behaviour with the system package manager. "
222+
"conflicting behaviour with the system package manager, possibly "
223+
"rendering your system unusable."
223224
"It is recommended to use a virtual environment instead: "
224225
"https://pip.pypa.io/warnings/venv. "
225226
"Use the --root-user-action option if you know what you are doing and "

0 commit comments

Comments
 (0)