how to get list of environments python cmd code example Example 1: list all virtualenv in python $ lsvirtualenv -l Example 2: list all virtualenv in python $ lsvirtualenv -b