There are TONS of the articles and tutorials on the net showing how to do this, but I always ends up with losing my mind during those complicated settings, and they all have different start up points, some already have a few packages installed and you don’t, so you failed.
Today, I’m going to show you the simplified version, which is doing all of this from a fresh installed ubuntu 10.10 machine. It’s real simple but not massing up your system wide variables.
Commands I used
I logged in as root, if you don’t like, just prepend “sudo” before each of the command.
[bash]
apt-get install python-setuptools
easy_install pip
pip install virtualenv
pip install virtualenvwrapper
mkdir ~/.virtualenvs
echo source /usr/local/bin/virtualenvwrapper.sh >> ~/.profile
[/bash]
And we are done.
Now you are able to do whatever you’d like to do. mkvirtualenv lihanproject