pip venv venv code example
Example 1: python virtual environment
python3 -m pip install --user virtualenv
Example 2: python virtual env
$ export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2.7
python3 -m pip install --user virtualenv
$ export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2.7