【问题标题】:Macports Port Select CommandsMacports 端口选择命令
【发布时间】:2011-09-30 12:27:34
【问题描述】:

什么是新的命令和或等效的:

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,我会得到以下信息:

错误:端口选择 [--list |--set |--show] []。

【问题讨论】:

    标签: python macports


    【解决方案1】:

    要列出:

    port select --list python
    

    显示:

    port select --show python
    

    选择:

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

    【讨论】:

    • 有任何指向port select 文档的链接吗?
    • 还有port select --summary 用于安装所有内容。
    • @DmitriZaitsev 目前没有在线文档;如果你在本地安装了 MacPorts,那么你有 port help select
    • @FranklinYu:那个实际上就是这里的答案!
    猜你喜欢
    • 2020-10-10
    • 2011-12-22
    • 2012-07-11
    • 2013-03-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-02
    • 2011-09-01
    相关资源
    最近更新 更多