1

When trying to install Darts library its dependencies Pystan and Prophet were throwing errors:

  • ERROR: Failed building wheel for pystan
  • Building wheel for prophet (setup.py) error

Followed solution from here which redirected me to the pystan docs, https://pystan.readthedocs.io/en/latest/windows.html, which does not work.

How to solve this error? I would like to install Darts library successfully in Windows system Anaconda distribution.

Python 3.9.7

  • What exactly did you do, and what happened, and what did you expect to happen instead? What errors do you get? What is your question? – Robert Mar 25 '22 at 14:38
  • I got the error when trying to import libraries for installing Darts. I tried to resolve the error and successfully installed Darts after following the solution that I wrote. Is the question and solution not explanatory @Robert? I could edit to elaborate maybe. – Roopa Sudhakar Apr 17 '22 at 19:35
  • To install Prophet post pystan use the below line of code: conda install -c conda-forge prophet – Roopa Sudhakar May 21 '22 at 08:33

2 Answers2

1

The link that I share in the question directed me to an incorrect path for troubleshooting pystan installation for Windows. The correct link is https://pystan2.readthedocs.io/en/latest/windows.html?msclkid=eb5dcb49ac2511ec829bf25d2eab26d6

When following all the steps from the above link I was successfully able to fix the issue. Also reiterating the steps I followed here.

  1. conda info
  2. conda update conda
  3. conda activate my_env (I already had an environment created from Anaconda UI with python 3.9.7)
  4. activate my_env
  5. conda install libpython m2w64-toolchain -c msys2
  6. conda install numpy cython matplotlib scipy pandas -c conda-forge
  7. pip install pystan
0

Please install the prophet, then import as like.

from prophet import Prophet

Asif Raza
  • 971
  • 6
  • 14