python_select
Joshua Root
jmr at macports.org
Mon Mar 28 06:25:52 PDT 2016
If you want to run 'python', use python_select. This can be linked to
any version of python. If you want to run 'python2' or 'python3', use
the others. These can only be linked to python 2.x or 3.x respectively.
A common use for this might be if you have scripts that only work with
one or the other, in which case you can start them with something like
'#!/usr/bin/env python2'.
- Josh
On 2016-3-29 00:02 , Mark Brethen wrote:
> So if you have a single python version installed use python_select, whereas python2_select and python3_select allow you to set those default versions if you need both?
>
>> On Mar 28, 2016, at 5:46 AM, Joshua Root <jmr at macports.org> wrote:
>>
>> Mark Brethen wrote:
>>> Why are there a python_select, python2_select and python3_select? When is one vs the others used?
>>
>> They allow creating links 'python', 'python2' and 'python3' respectively.
>>
>> - Josh
More information about the macports-users
mailing list