virtual envirnment code example Example 1: virtual environement py -m venv env .\env\Scripts\activate Example 2: virtualenv virtualenv env