Its pretty simple to get Python 3.2 ( the latest for Pi ) installed, just a couple of apt-get commands and a little shell hacking will do it
First lets get Python 3 install
sudo apt-get install python3
Next get setup tools
sudo apt-get install python3-setuptools
And finally we want Pip installing but ensuring it works for Python 3
sudo apt-get install python3-pip
Then modify you shell script to alias ‘python’ to run ‘python3’
alias vi='vim' alias python='python3.2' alias pip='pip-3.2'
The best way to do this is with your favourite editor and then adding the lines you mention, followed by using source to make them available in your current session.
sudo nano ~/.bash_aliases source ~/.bash_aliases
Jobs a good’un !