python virtualenv actibvaty code example Example 1: how to use virtual environment python source env/bin/activate Example 2: venv python -m venv c:\path\to\myenv