virtual environment cmd code example Example 1: virtualenv activation program in cmd .\venv\Scripts\activate Example 2: cmd activate virtualenv .\Scripts\activate