active a virtualenv python code example Example 1: start python virtual activate venv Example 2: python virtual environment source env/bin/activate