install python in linux

1,  download :  Python-2.6.2.tar.bz2

2,  tar –jxvf Python-2.6.2.tar.bz2
3,  cd Python-2.6.2
4,  ./configure --prefix=/usr/local

5,  make
6,   make install

 

7,  ln -sf /usr/local/bin/python2.6 /usr/bin/python (选择默认的python版本)

你可能感兴趣的:(install python in linux)