Quick steps of using Python virtualenv

Quick steps of using Python virtualenv.

$ sudo pip install virtualenv
$ mkdir ~/PythonEnvs/
$ virtualenv ~/PythonEnvs/env1/
$ cd ~/PythonEnvs/env1/
$ ls
  bin include lib
$ source bin/activate
(env1)$ =>now you are in the virtual env
// To leave the virtual env
$ deactivate

python