How to install virtualenv, virtualenvwrapper in ubuntu

3 years ago
Posted by andri
Board Tutorial
661 views


Follow below:

sudo apt-get update
sudo apt-get install python-setuptools python-dev build-essential git-core -y
sudo easy_install pip
sudo pip install virtualenv
sudo pip install virtualenvwrapper
mkdir ~/virtualenvs
echo "export WORKON_HOME=~/virtualenvs" > > ~/.bashrc
echo "source /usr/local/bin/virtualenvwrapper.sh" > > ~/.bashrc
echo "export PIP_VIRTUALENV_BASE=~/virtualenvs" > > ~/.bashrc
source ~/.bashrc

mkvirtualenv blog

If you want to get out/off your virtualenv use this command:

deactivate

If you want to jump back on the virtualenv we just created and installed django use this command:

workon xxx

And finally if you want to remove the virtualenv altogether

rmvirtualenv blog

Source :hosseinkaz.blogspot.com