linux switch to venv code example Example 1: activate venv source env/bin/activate Example 2: start virtualenv source env/bin/activate