pip create environment venv code example Example 1: venv python -m venv c:\path\to\myenv Example 2: pip install virtualenv windows py -m venv env