create new pip environment code example Example 1: activate venv venv\Scripts\activate.bat Example 2: create a virtualenv python3 py -m venv env