Compile Error for PyStan on Windows


#1

Operating System: Windows 8.1
Python Version: 3.6
Interface Version: 2.16
Compiler/Toolkit: Visual Studio Build Tools

Hi,

I installed Pystan for Python 3.6 and followed the installation instructions for Pystan on Windows. When I compile a model, I get an error with the following message. I tested the Stan file on my private laptop (Mac).

File “C:\Users\exp\Desktop\python36\ado_stan.py”, line 177, in StanModel_cache sm = pystan.StanModel(model_code=model_code)
File “C:\Users\exp\Desktop\python36\lib\site-packages\pystan\model.py”, line 311, in init
_ build_extension.run()_
File “C:\Users\exp\Desktop\python36\lib\distutils\command\build_ext.py”, line 339, in run
_ self.build_extensions()_
File “C:\Users\exp\Desktop\python36\lib\distutils\command\build_ext.py”, line 448, in build_extensions self.build_extensions_serial()
_ File “C:\Users\exp\Desktop\python36\lib\distutils\command\build_ext.py”, line 473, in build_extensions_serial self.build_extension(ext)
_ File “C:\Users\exp\Desktop\python36\lib\distutils\command\build_ext.py”, line 533, in build_extension depends=ext.depends)

_ File “C:\Users\exp\Desktop\python36\lib\distutils_msvccompiler.py”, line 384, in compile_
_ raise CompileError(msg)_
distutils.errors.CompileError: command ‘C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe’ failed with exit status 1

Who can help?

Thanks in advance!