diff options
author | Xi Ruoyao <xry111@mengyan1223.wang> | 2022-04-21 14:23:07 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@mengyan1223.wang> | 2022-04-21 14:23:07 +0800 |
commit | 720c0bd9fbd29a25c8a0b6ae01e54fb21bdd4169 (patch) | |
tree | 0c8d9d025d47366923baa36aa0ad581106d52a15 /chapter08/python.xml | |
parent | e286d8db1493827461aa95ea43b345a9ce5d9f2e (diff) |
python: add a <important> for pip3 usage
Diffstat (limited to 'chapter08/python.xml')
-rw-r--r-- | chapter08/python.xml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chapter08/python.xml b/chapter08/python.xml index 1af9e0db9..cc3ca0d66 100644 --- a/chapter08/python.xml +++ b/chapter08/python.xml @@ -109,6 +109,27 @@ -i /usr/lib/python3.10/site-packages/pip/_internal/cli/req_command.py </userinput></screen> + <important> + <para> + In LFS and BLFS, we normally build and install Python modules with + <command>pip3</command>. Please take care that the + <command>pip3 install</command> commands in both the books should be + run as &root; unless it's for a Python virtual environment. Running + a <command>pip3 install</command> as a non-&root; user may seems to + work fine, but it will cause the installed module unaccessible by + other users. + </para> + <para> + <command>pip3 install</command> will not reinstall an already + installed module by default. For using the + <command>pip3 install</command> command to upgrade a module (for + example, from meson-0.61.3 to meson-0.62.0), append + <parameter>-U</parameter> to the command line. If it's really + necessary to downgrade a module or reinstall the same version for + some reason, append <parameter>--force-reinstall</parameter> to + the command line. + </para> + </important> <para>If desired, install the preformatted documentation:</para> |