install venv in windows code example Example 1: how to activate a venv in windows \env\Scripts\activate.bat Example 2: pip install virtualenv windows python3 -m venv env