Changeset 23277f0c for chapter08/python.xml
- Timestamp:
- 04/21/2022 03:23:18 PM (2 years ago)
- Branches:
- arm
- Children:
- 3e8a788
- Parents:
- 8b8ad95
- git-author:
- Xi Ruoyao <xry111@…> (04/18/2022 04:59:52 AM)
- git-committer:
- William Harrington <kb0iic@…> (04/21/2022 03:23:18 PM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter08/python.xml
r8b8ad95 r23277f0c 94 94 95 95 <para>In serveral places we use the <command>pip3</command> command to 96 install Python 3 programs and modules for all users as root. This conflicts 97 with the Python developers recommendation to build packages in a virtual 98 environment as a regular user. To this end, a multi-line warning is 99 written when using <command>pip3</command> as the root user. If desired, 100 supress this warning by running the following command:</para> 96 install Python 3 programs and modules for all users as 97 <systemitem class='username'>root</systemitem>. This conflicts 98 with the Python developers recommendation to install packages into a 99 virtual environment or the home directory of a regular user (by running 100 <command>pip3</command> as this user). To this end, a multi-line warning 101 is written when using <command>pip3</command> as the 102 <systemitem class='username'>root</systemitem> user. The main reason 103 of this recommendation is for avoiding a conflict with the system 104 package manager (<command>dpkg</command> for example), but LFS does not 105 have a system-wide package manager so this is not a problem. If desired, 106 suppress this warning by running the following command:</para> 101 107 102 108 <screen><userinput remap="install">sed -e '/def warn_if_run_as_root/a\ return' \
Note:
See TracChangeset
for help on using the changeset viewer.