how to install virtualenv in python 3.8 scripts code example Example 1: how to use virtual environment python python3 -m venv env Example 2: start python virtual activate venv