exit virtual env python code example Example 1: how to exit virtualenv Click to copy$ deactivate Example 2: exit venv python Click to copy$ deactivate