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