how to leave venv environment code example Example 1: activate venv source env/bin/activate Example 2: activate venv venv\Scripts\activate.bat