If your question relates to installation please also provide the following information:
- Windows
- Python 3.5
I have installed PyStan following the instructions on https://pystan.readthedocs.io/en/latest/windows.html. I have also added the path variables as discussed inhttps://discourse.mc-stan.org/t/compile-error-for-pystan-on-windows/1265. However, running the test case
import pystan
model_code = ‘parameters {real y;} model {y ~ normal(0,1);}’
model = pystan.StanModel(model_code=model_code)
y = model.sampling().extract()[‘y’]
y.mean() # with luck the result will be near 0
I get below exception:
INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_5944b02c79788fa0db5b3a93728ca2bf NOW.
Traceback (most recent call last):
File “”, line 3, in
File “C:\Users\u23366\AppData\Local\Continuum\Anaconda3\envs\stan_env\lib\site-packages\pystan\model.py”, line 350, in init
build_extension.run()
File “C:\Users\u23366\AppData\Local\Continuum\Anaconda3\envs\stan_env\lib\distutils\command\build_ext.py”, line 308, in run
force=self.force)
File “C:\Users\u23366\AppData\Local\Continuum\Anaconda3\envs\stan_env\lib\distutils\ccompiler.py”, line 1031, in new_compiler
return klass(None, dry_run, force)
File “C:\Users\u23366\AppData\Local\Continuum\Anaconda3\envs\stan_env\lib\distutils\cygwinccompiler.py”, line 285, in init
CygwinCCompiler.init (self, verbose, dry_run, force)
File “C:\Users\u23366\AppData\Local\Continuum\Anaconda3\envs\stan_env\lib\distutils\cygwinccompiler.py”, line 129, in init
if self.ld_version >= “2.10.90”:
TypeError: unorderable types: NoneType() >= str()
Can anybody help?