source env/scripts/activate in windows code example Example 1: virtualenv activation program in cmd .\venv\Scripts\activate Example 2: cmd activate virtualenv .\Scripts\activate