python env reactive code example Example 1: how to exit virtualenv $ deactivate Example 2: deactivate venv deactivate venv