list environements pip code example Example 1: how to activate venv python python3 -m venv tutorial-env Example 2: python virtual env $ source venv/bin/activate