我想使用一些需要Python 2.6
的新软件,而我们目前在我们的专用CentOS服务器上安装了2.4
和2.6
两个版本,情况如下:
$ which python
/usr/local/bin/python
$ which python2.6
/usr/bin/python2.6
$ which python2.4
/usr/local/bin/python2.4
$ ls -l /usr/local/bin/py*
-rwxr-xr-x 1 root root 81 Aug 9 2007 /usr/local/bin/pydoc
-rwxr-xr-x 2 root root 3394082 Aug 9 2007 /usr/local/bin/python
-rwxr-xr-x 2 root root 3394082 Aug 9 2007 /usr/local/bin/python2.4
如何将默认的python
版本更改为2.6
?