create a 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
Example 2: create virtual environment python 3
python3 -m venv /path/to/new/virtual/environment
Example 3: python virtual env
$ cd project_folder
$ virtualenv venv
Example 4: python virtual env
$ source venv/bin/activate