升级python(linux)
? ?6: >;>>?? ?7: [root@wangyuelou ~]#?下载新版本的python1: [root@wangyuelou ~]# wget http://python.org/ftp/python/2.7.2/Python-2.7.2.tgz?解压缩 以及编译? ?1: [root@wangyuelou ~]# tar xvf Python-2.7.2.tar.bz2?? ?2: [root@wangyuelou Python-2.7.2]# ./configure --prefix=/usr/local/python27? ?3: [root@wangyuelou Python-2.7.2]# make? ?4: [root@wangyuelou Python-2.7.2]# make install? ?5: [root@wangyuelou Python-2.7.2]# ls /usr/local/python27/ -al? ?6: total 28? ?7: drwxr-xr-x ?6 root root 4096 Jul 14 00:21 .? ?8: drwxr-xr-x 20 root root 4096 Jul 14 00:17 ..? ?9: drwxr-xr-x ?2 root root 4096 Jul 14 00:21 bin? 10: drwxr-xr-x ?3 root root 4096 Jul 14 00:21 include? 11: drwxr-xr-x ?4 root root 4096 Jul 14 00:21 lib? 12: drwxr-xr-x ?3 root root 4096 Jul 14 00:21 share覆盖原来的python链接? ?1: [root@wangyuelou Python-2.7.2]# mv /usr/bin/python /usr/bin/python_old? ?2: [root@wangyuelou Python-2.7.2]# ln -s /usr/local/python27/bin/python /usr/bin/? ?3: [root@wangyuelou Python-2.7.2]# python