Painless way to setup virtualenv and virtualenvwrapper on Ubuntu 10.10.

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

Pip server outage 24th Apr 2011

root@F8Vr:~# pip install django

Downloading/unpacking django

Cannot fetch index base URL http://pypi.python.org/simple/

Could not find any downloads that satisfy the requirement django

No distributions at all found for django

Storing complete log in /root/.pip/pip.log

 

The solution: pip install -i http://d.pypi.python.org/simple/ $your package name

That is a minor site of python pip, I’m here sharing what I got. Hope that helps.