Install virtualenv
sudo apt install python3-venv
Create a virtualenv somewhere
python3 -m venv <env name>
Activate the environment and move to the <repo folder>
. <env name>/bin/activate
The first time, install the packages from requirements.txt
pip install -r requirements.txt
(If you install something with pip install
remember to dump the packages installed and push the new requirements)
pip freeze > requirements.txt
Deactivate the environment
deactivate