aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorErik Skultety <eskultet@redhat.com>2022-07-14 10:54:33 +0200
committerErik Skultety <eskultet@redhat.com>2022-07-14 14:21:04 +0200
commit36fd7b46fa0f9231c5774f77bb910be4e0ff88e7 (patch)
tree7727c06a53891e6c44d3b64f0ed86e0b51671516 /docs
parent6c7719301368592ebb2114be4daae997fe039a5a (diff)
downloadlibvirt-ci-36fd7b46fa0f9231c5774f77bb910be4e0ff88e7.zip
libvirt-ci-36fd7b46fa0f9231c5774f77bb910be4e0ff88e7.tar.gz
libvirt-ci-36fd7b46fa0f9231c5774f77bb910be4e0ff88e7.tar.bz2
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 <eskultet@redhat.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/installation.rst6
1 files 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 <path_to_venv>
+ $ source <path_to_venv>/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.