Compile Error for PyStan on Windows


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


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\”, line 177, in StanModel_cache sm = pystan.StanModel(model_code=model_code)
File “C:\Users\exp\Desktop\python36\lib\site-packages\pystan\”, line 311, in init
File “C:\Users\exp\Desktop\python36\lib\distutils\command\”, line 339, in run
_ self.build_extensions()_
File “C:\Users\exp\Desktop\python36\lib\distutils\command\”, line 448, in build_extensions self.build_extensions_serial()
_ File “C:\Users\exp\Desktop\python36\lib\distutils\command\”, line 473, in build_extensions_serial self.build_extension(ext)
_ File “C:\Users\exp\Desktop\python36\lib\distutils\command\”, line 533, in build_extension depends=ext.depends)

_ File “C:\Users\exp\Desktop\python36\lib\”, 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!