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 + + + In LFS and BLFS, we normally build and install Python modules with + pip3. Please take care that the + pip3 install commands in both the books should be + run as &root; unless it's for a Python virtual environment. Running + a pip3 install as a non-&root; user may seems to + work fine, but it will cause the installed module unaccessible by + other users. + + + pip3 install will not reinstall an already + installed module by default. For using the + pip3 install command to upgrade a module (for + example, from meson-0.61.3 to meson-0.62.0), append + -U to the command line. If it's really + necessary to downgrade a module or reinstall the same version for + some reason, append --force-reinstall to + the command line. + + If desired, install the preformatted documentation: