python2 virtualenv code example
Example 1: virtualenv -p python3
virtualenv -p python3.6 venv
For simple python3
virtualenv -p python3 venv
Example 2: python virtual env
$ pip install 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
Example 5: create virtualenv python3
python3 -m venv /path/to/new/virtual/environment