1. # Creates the virtual enviroment.
virtualenv venv
2. # Activates virtual enviroment.
source venv/bin/activate
#Step 1 in Mac
pip3 install virtualenv
#step 2
python3 -m venv env_name
#step 3
cd env_name
#step 4
source env_name/bin/activate
# Creates the virtual enviroment.
python3 -m venv venv
# Activates virtual enviroment.
. venv/bin/activate