Python and python3
Rainer Müller
raimue at macports.org
Wed May 1 22:04:39 UTC 2024
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
Rainer
More information about the macports-users
mailing list