2011-07-07 80 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>