exit python environment code example Example 1: deactivate venv deactivate venv Example 2: exit venv python $ deactivate Example 3: deactive venv $ deactivate