activate myenv python code example Example 1: activate venv source env/bin/activate Example 2: activate venv in python python3 -m venv tutorial-env