我是先装好Python,后来要用到Tkinter才装的
1.安装Python2.6.1:
dumeifang@dumeifang-desktop:~$ su
Password:
root@dumeifang-desktop:/home/dumeifang#wget http://www.python.org/ftp/python/2.6.1/Python-2.6.1.tgz
--14:28:31-- http://www.python.org/ftp/python/2.6.1/Python-2.6.1.tgz
=> `Python-2.6.1.tgz'
Resolving www.python.org... 82.94.164.162
Connecting to www.python.org|82.94.164.162|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13,046,455 (12M) [application/x-tar]
......
解压:tar xfz Python-2.6.1.tgz
切换目录:cd Python-2.6.1
configure: ./configure
编译:make
安装:make install
试一下能不能用: