virtual environment in window code example Example 1: activate virtualenv windows venv\Scripts\activate Example 2: create environment python windows 10 python3 -m venv venv