windows venv activate python code example Example 1: how to activate a venv in windows \env\Scripts\activate.bat Example 2: windows activate venv venv\Scripts\activate