Python and python3

ideal.cat9953 at fastmail.com ideal.cat9953 at fastmail.com
Wed May 1 22:24:47 UTC 2024


On Wed, May 1, 2024, at 5:04 PM, Rainer Müller wrote:
> On 01/05/2024 23.17, ideal.cat9953 at fastmail.com wrote:
>> I’m relatively new to MacPorts, and I notice that the pythonX packages
>> create a python but not python3 link. Is there a reason for that? Both
>> the system python and other package managers use python3, and that’s a
>> hard habit to switch after so many years, and I don’t want to
>> accidentally use the wrong (in this case, system) python.
>
> You can control both the python and python3 symlinks in the prefix with
> the 'port select' action, for example:
>
>   sudo port select --set python python312
>   sudo port select --set python3 python312

Ahhh, the only usage I saw was just python, I didn’t realize you could do both. Very good, thank you!


More information about the macports-users mailing list