Hi,
First, use pip version pip install pystan
and try compiling again.
There seems to be similar problems with mojave
Run this (in pandas issue) and try again:
/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
If that doesn’t work, then remove xcode and commandline tools and do the fresh install.
Run all these tests in fresh conda-env.
Install PyStan from source to a new conda env.
conda create -n stan_env python=3.7 numpy cython
conda activate stan_env
Then install from source (needs git, install with conda if not found; conda install git
)
pip install git+https://github.com/stan-dev/pystan