environment for python code example Example 1: how to activate venv python tutorial-env\Scripts\activate.bat Example 2: create a virtualenv python3 py -m venv env