我的 /usr/bin 包含以下 python 安装
lrwxr-xr-x 1 root wheel 76 Nov 18 06:17 pythonw2.7 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7
lrwxr-xr-x 1 root wheel 76 Nov 18 06:17 pythonw2.6 -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/pythonw2.6
lrwxr-xr-x 1 root wheel 76 Nov 18 06:17 pythonw2.5 -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/pythonw2.5
-rwxr-xr-x 2 root wheel 62752 Nov 18 06:17 pythonw
lrwxr-xr-x 1 root wheel 82 Nov 18 06:17 python2.7-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
lrwxr-xr-x 1 root wheel 75 Nov 18 06:17 python2.7 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x 1 root wheel 82 Nov 18 06:17 python2.6-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config
lrwxr-xr-x 1 root wheel 75 Nov 18 06:17 python2.6 -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
lrwxr-xr-x 1 root wheel 82 Nov 18 06:17 python2.5-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5-config
lrwxr-xr-x 1 root wheel 75 Nov 18 06:17 python2.5 -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5
-rwxr-xr-x 6 root wheel 925 Nov 18 06:17 python-config
-rwxr-xr-x 2 root wheel 62752 Nov 18 06:17 python
lrwxr-xr-x 1 root wheel 63 Mar 6 13:23 python3.2 -> /Library/Frameworks/Python.framework/Versions/3.2/bin/python3.2
我本以为 python 会是已安装的任何版本的链接,但事实并非如此。它似乎是一个 python 可执行文件
15:00:33 /usr/bin $ python -V
Python 2.7.1
另一个安装显示相同的版本
15:01:36 /usr/bin $ pythonw2.7 -V
Python 2.7.1
但校验和并不相同
15:02:15 /usr/bin $ sum python2.7
60959 35 python2.7
15:03:18 /usr/bin $ sum python
10360 62 python
我想知道..实际上可以吗
rm python
ln -s python3.2 python
系统:MAC
答案1
为什么不重命名而不是删除:
mv python python.original