Hi,

i downloaded python3.1.1 from the official website and unrared it

sudo apt-get install libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline5-dev tcl8.5-dev tk8.5-dev libbz2-dev libsqlite3-dev

cd ./Python3.1.1
./configure --prefix=/usr
make
sudo make install

if you want setup python3 is default for your all script, just go to

cd /usr/bin
sudo rm python
sudo ln -s python3.1 python

all done enjoy it.