Python - Virtualenv

Today I am going to explain how to install virtualenv and install python in it in linux

Sometimes you would have to install & complie Python from source and then create venv from that. These are steps for Python 2.7.2:

                       mkdir ~/src
                       tar -zxvf Python-2.7.2.tar.gz
                       cd Python-2.7.2
                       mkdir ~/.localpython
                       ./configure --prefix=/home//.localpython
                       make install
virtual env

                       cd ~/src
                       tar -zxvf virtualenv-1.5.2.tar.gz
                       cd virtualenv-1.5.2/
                       ~/.localpython/bin/python install
                       virtualenv ve -p /home//.localpython/bin/python2.7
                       source activate

Leave a comment