install virual env command code example Example 1: python virtual env $ pip install virtualenv Example 2: python virtual env $ source venv/bin/activate