As of macOS 12.3, Apple no longer ships Python 2
However, I am trying to install a program (.pkg installer) that depends on /usr/bin/python
and it fails. In /var/log/install.log
I see this error:
/usr/bin/python: bad interpreter: No such file or directory
I've already installed Python 2.7 on my system, but the root directory is now read-only so I can't symlink to /usr/bin/python
. Disabling SIP does not work. I know there are workarounds for mounting the root system as writable, but that seems like a lot of work given that I need this for a one-time install.
So my question is, is there any other way that I can make the Python binary accessible to the installer via /usr/bin/python
?
#!/usr/bin/python
– kym Apr 07 '22 at 02:13