windows activate env code example Example 1: activate virtual environment on windows venv\Scripts\activate.bat Example 2: windows activate venv venv\Scripts\activate