Install virtualenv and virtualenvwrapper on Ubuntu

Virtualenv store a private copy of python, PHP and packages of Python. There are some simple steps to install it on Ubuntu. Install pip:

sudo apt-get install python-pip

Install virtualenv

sudo pip install virtualenv

Now create a dir where all your virtualenvs file will be stores

mkdir ~/.virtualenvs

At this stage we can successfully use virtualenv and can use it on project. Now we do some extra work to get some facilities using virtualenv

Install virtualenvwrapper

sudo pip install virtualenvwrapper

now connect this with virtualenv

nano ~/.bashrc

add those line on .bashrc file at the bottom of it

export WORKON_HOME=~/.virtualenvs

now exit command line and reopen

sudo apt-get update

Make virtualenv

mkvirtualenv testvirtualenv

want to show virtualenv

activate virtualenv
workon testvirtualenv

just write deactivate it will be deactivated