Macports Port Select Commands

五迷三道 提交于 2019-11-27 11:13:13

问题


What are the new commands & or equivalents of:

python_select -L (shows available python versions)

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

I know they have changed to --list, --set, --show but there doesn't seem to be an example of how to properly use each one. For example, if I use port select --set I get the following:

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


回答1:


To list:

port select --list python

To show:

port select --show python

To select:

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


来源:https://stackoverflow.com/questions/6612009/macports-port-select-commands

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!