How to set Python symlink in MacOS Ventura

bashmacospythonsymlinkterminal

I am trying to set a symlink so that I can point the python command in Terminal to a new install of python3.

I last did this in Mojave, where one could disable csrutil and then run the following command before re-enabling:

sudo ln -s /usr/bin/python3 /usr/bin/python

Now I am trying to do the same in MacOS Ventura 13.1, and I am met with the error feedback:

ln: /usr/bin/python: Read-only file system

What is this new roadblock that "MacOSimandius, destroyer of worlds" throws in my path?

And more importantly (please): How do I set my symlink? It must still be possible. This is still unix, is it not?

Best Answer

You can't modify /usr/bin any longer (at least not without disabling SSV). What you can do instead is

sudo mkdir -p /usr/local/bin
sudo ln -s /usr/bin/python3 /usr/local/bin/python

and then make sure that /usr/local/bin is in PATH.