create virtual enviornment with all existing packages code example Example 1: start virtualenv source env/bin/activate Example 2: create new python environment py -m venv env