navigate to virtual environment python code example
Example 1: how to use virtual environment python
python3 -m venv env
Example 2: python virtual env
$ virtualenv -p /usr/bin/python2.7 venv
python3 -m venv env
$ virtualenv -p /usr/bin/python2.7 venv