python get list of virtual environment code example Example 1: list all virtualenv in python $ lsvirtualenv -l Example 2: python virtual env $ pip install virtualenv