Pip tips and tricks: Difference between revisions
Jump to navigation
Jump to search
(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> ==...") |
No edit summary |
||
Line 1: | Line 1: | ||
== module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY == | |||
<syntaxhighlight lang="bash"> | |||
# Remove installed OpenSSL lib package | |||
$sudo rm -rf /usr/lib/python3/dist-packages/OpenSSL | |||
# Reinstall updated pyopenssl | |||
$sudo -H pip3 install -U pyopenssl | |||
</syntaxhighlight> | |||
== WARNING: Running pip as the 'root' user == | == 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"> | 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"> |
Revision as of 15:41, 9 March 2024
module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY
# Remove installed OpenSSL lib package
$sudo rm -rf /usr/lib/python3/dist-packages/OpenSSL
# Reinstall updated pyopenssl
$sudo -H pip3 install -U pyopenssl
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