Macports 端口选择命令

25 投票
1 回答
25331 浏览
提问于 2025-04-16 21:01

新的命令或者相应的命令是什么呢:

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 时,我得到了以下错误信息:

错误:port select [--list |--set |--show] []。

1 个回答

51

要列出:

port select --list python

要显示:

port select --show python

要选择:

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

撰写回答