mirror of https://github.com/pypa/pip
Merge pull request #10022 from pradyunsg/better-root-message
Rephrase the warning printed when run as root on Unix
This commit is contained in:
commit
74580b13fb
|
@ -177,8 +177,9 @@ def warn_if_run_as_root():
|
|||
if os.getuid() != 0:
|
||||
return
|
||||
logger.warning(
|
||||
"Running pip as root will break packages and permissions. "
|
||||
"You should install packages reliably by using venv: "
|
||||
"Running pip as the 'root' user can result in broken permissions and "
|
||||
"conflicting behaviour with the system package manager. "
|
||||
"It is recommended to use a virtual environment instead: "
|
||||
"https://pip.pypa.io/warnings/venv"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue