Skip to content

Commit

Permalink
Be explicit about consequences of running as root
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Pepe committed Jul 20, 2023
1 parent 9bef36e commit d7ec820
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pip/_internal/cli/req_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ def warn_if_run_as_root() -> None:

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

0 comments on commit d7ec820

Please sign in to comment.