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