Skip to content

Python Environments

jfuruness edited this page Nov 19, 2020 · 1 revision

lib_bgp_data

Installation

Python environments allow you to keep multiple environments in parallel for all your python dependencies. Note that if you are on a machine with SELinux you probably need it.

To install (after installing python version 3.8)

sudo apt-get install python3-pip
python3.8 -m pip3 install virtualenv 

Once you have virtualenv installed, run

python3.8 -m venv env
source ./env/bin/activate

Now you have activated your environment. To deactivate it, run: deactivate