Search code examples
pythonmacports

Macports Port Select Commands


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] [].


Solution

  • To list:

    port select --list python
    

    To show:

    port select --show python
    

    To select:

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