From 36fd7b46fa0f9231c5774f77bb910be4e0ff88e7 Mon Sep 17 00:00:00 2001 From: Erik Skultety Date: Thu, 14 Jul 2022 10:54:33 +0200 Subject: docs: install: Replace system-wide pip installs with virtualenv Installing system-wide with pip leads to security implications (packages not updated with system package manager) and potentially broken system packages since pip would replace files in the system paths. Therefore, instead of suggesting system-wide installation with pip, suggest usage of virtual environments. Signed-off-by: Erik Skultety --- docs/installation.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/installation.rst b/docs/installation.rst index 09300dd..e114066 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -16,12 +16,14 @@ to the Python user install directory # this will install only the very basic dependencies $ pip3 install --user -r requirements.txt -or, system-wide +or into a virtual environment :: # this will install only the very basic dependencies - $ sudo pip3 install -r requirements.txt + $ python3 -m venv + $ source /bin/activate + $ pip install -r requirements Depending on your intended use case for lcitool you can pick which dependencies you need to have installed, e.g. -- cgit v1.1