how to active vitrual ven in python terminal code example Example 1: venv python -m venv c:\path\to\myenv Example 2: create new python environment py -m venv env