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 /usr/local/bin/virtualenvwrapper.sh

now exit command line and re open

sudo apt-get update

Make virtualenv

mkvirtualenv testvirtualenv

want to show virtualenv
workon

activate virtualenv
workon testvirtualenv

just write deactivate it will be deactivate