Cannot compile pystan (macOS M2)

How to solve the error “command ‘x86_64-apple-darwin13.4.0-clang’ failed: No such file or directory”.
I use
・Mac book air with M2.
・Anaconda
・python 3.9.16

I could import pystan but I cannot compile.

Hi,

Check if compiling httpstan works

https://pystan.readthedocs.io/en/latest/faq.html#how-can-i-run-pystan-on-macos-with-apple-silicon-chips-apple-m1-m2-etc

Hi, I have managed to compile httpstan (version 4.12.0), but I still get this error.

I have similar settings, Mac air m2, anaconda, python 3.11.8, pystan 3.9.1