create python virtual environment with python 2.7 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: create and activate virtual environment with python 3
$ python3 -m venv ~/.virtualenvs/djangodev
$ source ~/.virtualenvs/djangodev/bin/activate