create and setup environemnt in python code example Example 1: how to make virtual environment virtualenv mypython Example 2: python virtual env $ source venv/bin/activate