[mac-120183:/opt/local/bin] name% sudo port select --set python python33
Selecting 'python33' for 'python' succeeded. 'python33' is now active.
[mac-120183:/opt/local/bin] name% python
Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
[mac-120183:/opt/local/bin] name% which python
/usr/bin/python
[mac-120183:/opt/local/bin] name% which python3.3
/opt/local/bin/python3.3
当我在命令行中键入 python 以使用交互模式时,如何将我的 python 切换到 python3.3?
谢谢