how to install virtualenv python windows code example Example 1: pip install virtualenv windows py -m venv env Example 2: pip install virtualenv windows .\env\Scripts\activate