|
|
|
|
 请教Python的版本问题 - zeero [ 2005-03-14 21:07 | 2,313 byte(s)]
 Re: 请教Python的版本问题 - limodou [ 2005-03-14 21:30 | 52 byte(s)]
 Re: 请教Python的版本问题 - zeero [ 2005-03-14 22:23 | 84 byte(s)]
 Re: 请教Python的版本问题 - limodou [ 2005-03-14 23:02 | 33 byte(s)]
 Re: 请教Python的版本问题 - sanford [ 2005-03-15 18:51 | 270 byte(s)]
 Re: 请教Python的版本问题 - xyb [ 2005-03-14 21:16 | 18 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
我的系统是Debian Sarge,系统安装的Python版本是2.3。从包管理程序来看,Python 2.4.1也可以安装,我就装了一个。但是运行以后显示的版本是2.3。看了一下,/usr/bin/python程序是一个符号链接,指向python2.3。我能简单的将它改为指向2.4,从而进行升级吗?升级以后对系统会有什么样的影响。
home:/usr/bin# ll py*
-rwxr-xr-x 1 root root 64 Aug 4 2004 pyalacarte
-rwxr-xr-x 1 root root 63 Aug 4 2004 pyalamode
-rwxr-xr-x 1 root root 61 Aug 4 2004 pycrust
lrwxrwxrwx 1 root root 8 Mar 8 20:46 pydoc -> pydoc2.3
-rwxr-xr-x 1 root root 48 Feb 9 07:54 pydoc2.3
-rwxr-xr-x 1 root root 79 Feb 9 20:02 pydoc2.4
lrwxrwxrwx 1 root root 12 Mar 8 20:46 pygettext -> pygettext2.3
-rwxr-xr-x 1 root root 22103 Feb 9 07:54 pygettext2.3
-rwxr-xr-x 1 root root 22103 Feb 9 20:02 pygettext2.4
lrwxrwxrwx 1 root root 24 Mar 14 20:04 pylint -> /etc/alternatives/pylint
lrwxrwxrwx 1 root root 28 Mar 14 20:04 pylint-gui -> /etc/alternatives/pylint-gui
-rwxr-xr-x 1 root root 86 Feb 16 23:16 pylint-gui.python2.3
-rwxr-xr-x 1 root root 87 Feb 16 23:16 pylint.python2.3
-rwxr-xr-x 1 root root 61 Aug 4 2004 pyshell
lrwxrwxrwx 1 root root 9 Mar 8 20:46 python -> python2.3
-rwxr-xr-x 1 root root 983480 Feb 9 07:54 python2.3
-rwxr-xr-x 1 root root 1043544 Feb 9 20:06 python2.4
-rwxr-xr-x 1 root root 60 Aug 4 2004 pywrap
home:/usr/bin# rm python
rm: remove symbolic link `python'? y
home:/usr/bin# ln -s python2.4 python
home:/usr/bin# rm pydoc
rm: remove symbolic link `pydoc'? y
home:/usr/bin# ln -s pydoc2.4 pydoc
home:/usr/bin# rm pygettext
rm: remove symbolic link `pygettext'? y
home:/usr/bin# ln -s pygettext2.4 pygettext
home:/usr/bin# python
Python 2.4.1a0 (#2, Feb 9 2005, 12:50:04)
[GCC 3.3.5 (Debian 1:3.3.5-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
|
|
|
[Original]
[Print]
[Top]
|
|
|