Roopa Sudhakar
Roopa Sudhakar

Reputation: 39

ERROR: Failed building wheel for pystan in Anaconda distribution. How to fix this error?

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

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

Upvotes: 1

Views: 5895

Answers (2)

Asif Raza
Asif Raza

Reputation: 1021

Please install the prophet, then import as like.

from prophet import Prophet

Upvotes: 0

Roopa Sudhakar
Roopa Sudhakar

Reputation: 39

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

Upvotes: 1

Related Questions