python2.7 virtual environment code example
Example 1: how to create environment in python3.7
# by runnin this command you can directly create python environment in with python3.7 version
python3.7 -m venv <venv_name>
Example 2: virtualenv python2
virtualenv --python=/usr/bin/python2.6 <path/to/new/virtualenv/>
Example 3: how to check the existing virtual environments
lsvirtualenv -l
Example 4: virtual env python 2
virtualenv -p C:\Python27\python.exe venv
.\venv\Scripts\activate