Pip tips and tricks

From HPCWIKI
Revision as of 13:02, 24 May 2023 by Admin (talk | contribs) (Created page with "== WARNING: Running pip as the 'root' user == This was introduced in pip <code>21.1</code> as a "bug fix" as of pip 22.1<ref>https://stackoverflow.com/questions/68673221/warning-running-pip-as-the-root-user</ref> <syntaxhighlight lang="bash"> #you can now opt out of the warning using a parameter: $sudo pip install --root-user-action=ignore <packages> # You can ignore this in your container by using the environment: ENV PIP_ROOT_USER_ACTION=ignore </syntaxhighlight> ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WARNING: Running pip as the 'root' user

This was introduced in pip 21.1 as a "bug fix" as of pip 22.1[1]

#you can now opt out of the warning using a parameter:
$sudo pip install --root-user-action=ignore <packages>

# You can ignore this in your container by using the environment:
ENV PIP_ROOT_USER_ACTION=ignore

References