how to create a venv python virtualenv code example Example 1: activate venv source env/bin/activate Example 2: how to use virtual environment python python3 -m venv env