xxxxxxxxxx
#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
xxxxxxxxxx
# Creates the virtual enviroment.
python3 -m venv venv
# Activates virtual enviroment.
. venv/bin/activate