env pip packages code example Example 1: activate venv source env/bin/activate Example 2: how to use virtual environment python python3 -m venv env