how to use venv with pip code example Example 1: python virtual environment source env/bin/activate Example 2: create new python environment py -m venv env