Skip to content

Latest commit

 

History

History
26 lines (25 loc) · 587 Bytes

setupvenv.md

File metadata and controls

26 lines (25 loc) · 587 Bytes

Set up a virtual environment

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