see which python virtual environment is activated code example
Example 1: python virtual env
$ pip install virtualenv
Example 2: how to check the existing virtual environments
lsvirtualenv -l
$ pip install virtualenv
lsvirtualenv -l