how to create new environment in oython code example Example 1: pip install virtualenv windows py -m venv env Example 2: pip install virtualenv windows .\env\Scripts\activate