source virtualenv python in windows code example Example 1: activate virtualenv windows venv\Scripts\activate Example 2: how to use virtual environment python python3 -m venv env