I have recently trying to use PyStan in Windows and found out it’s installation is more difficult than I thought. I normally use PyCharm as my IDE and was hopping to use PyStan with it. However, most advice I saw on the internet suggested I installed Anaconda instead, which I believe it comes with it’s onw IDE.
My question is: is it worth to learn how to work with Jupiter or Spider just for the sake of using PyStan? Should I try to find a way to incorporate both PyCharm and PyStan? Or should I try to call RStan (via subprocess for example) from python instead?
PyStan needs mingw-w64 compiler and this is usually done with conda package manager which also install needed changes for python distutils.
You could link your PyCharm to conda env, but the problem is, that it is currently a bit broken, because user needs to call activation script to enable mingw.
Alright, I installed Anaconda and following the windows instructions on the PyStan documentation to Windows and I managed to run PyStan in a conda environment.
I’m still trying to work around the problems surrounding PyCharm and PyStan as I’d really like to use PyCharm. However, I’m already trying out Juptyer Lab, thank you for the recommendation.
does the PyCharm IDE let you install packages from PyPi?
if so, install package cmdstanpy.
in the IDE, you should be able to install CmdStan on your machine via the install_cmdstan().
I haven’t used PyCharm, so I’d be interested to know if this works.
I just installed pystan. Actually it was straightforward. I used pip to install and I don’t think I used coda even though I configured the condo environment.
The 8 school example runs perfectly on pystan. This means stan is working properly?
I’m not sure if mingw-w64 was installed using Conda. but pystan is installed now and the 8schools examples is running successfully. This means mingw-w64 got installed?