install python3-venv on code example Example 1: how to make a virtual environment in python py -m venv env Example 2: how to use virtual environment python source env/bin/activate