python virtualenvironement code example Example 1: python virtual env $ cd project_folder $ virtualenv venv Example 2: how to check the existing virtual environments lsvirtualenv -l