aboutsummaryrefslogtreecommitdiffstats
path: root/chapter08/python.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter08/python.xml')
-rw-r--r--chapter08/python.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/chapter08/python.xml b/chapter08/python.xml
index 6b12d3559..76530d782 100644
--- a/chapter08/python.xml
+++ b/chapter08/python.xml
@@ -92,6 +92,18 @@
<screen><userinput remap="install">make install</userinput></screen>
+ <para>In serveral places we use the <command>pip3</command> command to
+ install Python 3 programs and modules for all users as root. This conflicts
+ with the Python developers recommendation to build packages in a virtual
+ environment as a regular user. To this end, a multi-line warning is
+ written when using <command>pip3</command> as the root user. If desired,
+ supress this warning by running the following command:</para>
+
+<screen><userinput remap="install">sed -e '/def warn_if_run_as_root/a\ return' \
+ -i /usr/lib/python3.10/site-packages/pip/_internal/cli/req_command.py
+</userinput></screen>
+
+
<para>If desired, install the preformatted documentation:</para>
<screen><userinput remap="install">install -v -dm755 /usr/share/doc/python-&python-version;/html