What is virtualenv?
VirtualEnv creates an isolated python environments. We python developers you will be dealing with several python projects that might use different python version or different version of libaries. VirtualEnv creates the isolation so that we don’t run into environment configs
$ pip install --user virtualenv
Activate the Virtual Environment
If you are running python3
$ python3 -m venv env
$ virtualenv env
where env
is the folder (or directory) to place the virtual environment
$ source ./env/bin/activate
This command will activate the environment
Deactivate the Virtual Envrionment
$ deactivate
Removing the envrionment
rm -rf ./env