I'm having trouble getting pystan to work. I am able to import pystan without errors but I'm not able to run run. Can someone help?
fit = pystan.stan(model_code=schools_code, data=schools_dat,
iter=1000, chains=4)
INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_95013624776d537c3cd7cd4d641c30e0 NOW.
Traceback (most recent call last):
File "C:\Users\daniel\Anaconda\lib\site-packages\IPython\core\interactiveshell.py", line 3032, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-52-f3d4d4964bda>", line 2, in <module>
iter=1000, chains=4)
File "C:\Users\daniel\Anaconda\lib\site-packages\pystan\api.py", line 372, in stan
save_dso=save_dso, verbose=verbose)
File "C:\Users\daniel\Anaconda\lib\site-packages\pystan\model.py", line 308, in __init__
build_extension.run()
File "C:\Users\daniel\Anaconda\lib\distutils\command\build_ext.py", line 337, in run
self.build_extensions()
File "C:\Users\daniel\Anaconda\lib\distutils\command\build_ext.py", line 446, in build_extensions
self.build_extension(ext)
File "C:\Users\daniel\Anaconda\lib\distutils\command\build_ext.py", line 496, in build_extension
depends=ext.depends)
File "C:\Users\daniel\Anaconda\lib\distutils\ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "C:\Users\daniel\Anaconda\lib\distutils\cygwinccompiler.py", line 166, in _compile
raise CompileError, msg
CompileError: command 'gcc' failed: No such file or directory