我刚刚在我的发行版 debian 挤压中安装了 python2.7。我对系统搜索 python 可执行文件的方式有点困惑。例如,当我输入ls -l | grep python
我有
lrwxrwxrwx 1 root root 23 Feb 5 17:14 pdb2.5 -> ../lib/python2.5/pdb.py
lrwxrwxrwx 1 root root 23 Nov 23 18:29 pdb2.6 -> ../lib/python2.6/pdb.py
lrwxrwxrwx 1 root root 9 Nov 23 18:29 python -> python2.6
-rwxr-xr-x 1 root root 1390792 Nov 28 2010 python2.5
-rwxr-xr-x 1 root root 2617520 Dec 27 2010 python2.6
-rwxr-xr-x 1 root root 1452 Dec 27 2010 python2.6-config
lrwxrwxrwx 1 root root 16 Nov 23 18:49 python-config -> python2.6-config
lrwxrwxrwx 1 root root 29 Nov 23 18:29 pyversions -> ../share/python/pyversions.py
符号链接显示 python 指向 python2.6,但是当我输入
python
The python 2.7 is the default python executable
Python 2.7.3 (default, Feb 6 2013, 12:12:35)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
我需要做什么才能使默认 python 回到 python 2.6?谢谢