Merge pull request #10022 from pradyunsg/better-root-message

Rephrase the warning printed when run as root on Unix
This commit is contained in:
Pradyun Gedam 2021-05-28 12:01:42 +01:00 committed by GitHub
commit 74580b13fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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"
)