Operating System:Windows 7
Interface Version: PyStan 2.19
Compiler/Toolkit: Anaconda
According to the PyStan website, to get support for ODEs, I need to be able to access the SUNDIALS library. It recommends install PyStan via:
pip install https://github.com/stan-dev/pystan/archive/v2.18.0.0-cvodes.tar.gz
However, when typing this into my Anaconda prompt I get the following error:
(base) C:>pip install https://github.com/stan-dev/pystan/archive/v2.18.0.0-cvod
es.tar.gz
Collecting https://github.com/stan-dev/pystan/archive/v2.18.0.0-cvodes.tar.gz
Downloading https://github.com/stan-dev/pystan/archive/v2.18.0.0-cvodes.tar.gz/ 614kB 595kB/s ERROR: Command errored out with exit status 1: command: 'C:\Users\dms228\AppData\Local\Continuum\anaconda3\python.exe' -c
‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’“‘C:\Users\dms228\AppData
\Local\Temp\pip-req-build-qpf7j9du\setup.py’”’“‘; file=’”‘“‘C:\Users\d
ms228\AppData\Local\Temp\pip-req-build-qpf7j9du\setup.py’”’“';f=getattr(tok
enize, '”‘“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’
"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ egg_info --e
gg-base ‘C:\Users\dms228\AppData\Local\Temp\pip-req-build-qpf7j9du\pip-egg-info’cwd: C:\Users\dms228\AppData\Local\Temp\pip-req-build-qpf7j9du\ Complete output (5 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\dms228\AppData\Local\Temp\pip-req-build-qpf7j9du\setup.py",
line 124, in
logger.warning(“MSVC is not supported”)
NameError: name ‘logger’ is not defined
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check th
e logs for full command output.
According to a thread with a similar problem on this forum, an alternative solution seems to be:
git clone --recursive https://github.com/stan-dev/pystan
cd pystan
git checkout sundials_update
pip install .
# or inplace
#pip install -e
However, when I try to type this into the prompt, I get this error:
(base) C:>git clone --recursive GitHub - stan-dev/pystan: PyStan, a Python interface to Stan, a platform for statistical modeling. Documentation: https://pystan.readthedocs.io
‘git’ is not recognized as an internal or external command,
operable program or batch file.
I feel like I’m probably misunderstanding some instructions. Any advice on what I’m doing wrong?