python set up virtual environment code example Example 1: start virtualenv source env/bin/activate Example 2: pip install virtualenv windows python3 -m venv env