2011-07-07 33 views
24

有哪些新的命令&或等价物:MacPorts的端口选择命令

python_select -L (shows available python versions) 

python_select -s (sets the default version of your choice of python). 

我知道他们已更改为--list--set--show但似乎没有要如何正确使用的例子每一个。例如,如果我用port select --set我得到如下:

Error: port select [--list |--set |--show] [].

回答

48

要列出:

port select --list python 

要显示:

port select --show python 

选择:

sudo port select --set python <the python version>