//to create the virtual environment in windows
python -m venv env
// or
python3 -m venv env
//to activate virtual environment in windows
source env/Scripts/activate
//to disable virtual environment in windows
deactivate
//create the virtual environment for Mac and Linux
python -m venv env
// or
python3 -m venv env
//activate virtual environment for Mac and Linux
source env/bin/activate
# Install venv on linux
sudo apt install python3.8-venv
# Create a venv directory
python3 -m venv tutorial-env
# Activate venv enviroment (do outside the created venv directory)
source tutorial-env/bin/activate
# Save activation as an alias for quick startup
alias runvenv="source tutorial-env/bin/activate"