python virtual environment in project directory code example Example: create virtual environment code python3 -m venv venv