Error installing Python on macOS Ventura

Or more relevantly, see this thread (that I remembered but couldn’t find before):