list all environments pip code example Example 1: python virtual env $ pip install virtualenv Example 2: how to check the existing virtual environments lsvirtualenv -l