how to create a venv python cmd command code example Example 1: activate virtualenv windows venv\Scripts\activate Example 2: venv python -m venv c:\path\to\myenv