Update README.md virtual environment section

Refer to the built-in venv module instead of the third party
virtualenv module.
Also do some minor text changes.

Fixes issue #525.
This commit is contained in:
Tero Paloheimo 2024-01-01 14:06:50 +02:00
parent 3e89aa4fcf
commit 64b5b7bb90
1 changed files with 5 additions and 6 deletions

View File

@ -121,11 +121,11 @@ python3 -m safeeyes
Safe Eyes installers install the required icons to `/usr/share/icons/hicolor`. When you run Safe Eyes from source without, some icons may not appear.
### Install in Virtual Environment
### Install in a virtual environment
Some Linux systems like Cent OS do not have matching dependencies available in their repository. In such systems, you can install and use Safe Eyes in a Python Virtual Environment. The following instruction was tested on Cent OS 7.
Some Linux systems like CentOS do not have matching dependencies available in their repository. In such systems, you can install and use Safe Eyes in a Python virtual environment.
1. Install the necessary dependencies
1. Install the necessary dependencies for CentOS 7
```bash
sudo yum install python3-devel dbus dbus-devel cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel gobject-introspection-devel cairo-gobject-devel
@ -137,13 +137,12 @@ Some Linux systems like Cent OS do not have matching dependencies available in t
mkdir ~/safeeyes
cd ~/safeeyes/
pip3 install virtualenv --user
virtualenv --no-site-packages venv
python3 -m venv venv
source venv/bin/activate
pip3 install dbus-python safeeyes
```
3. Start Safe Eyes from terminal
3. Start Safe Eyes from the terminal
```bash
cd ~/safeeyes & source venv/bin/activate