facebookresearch / Kats

Kats, a kit to analyze time series data, a lightweight, easy-to-use, generalizable, and extendable framework to perform time series analysis, from understanding the key statistics and characteristics, detecting change points and anomalies, to forecasting future trends.
MIT License
4.85k stars 530 forks source link

Kats installation failure due to Cython and numpy #330

Open XinyeZhao opened 6 months ago

XinyeZhao commented 6 months ago

Hi, when trying to install kats via pip, it pops an error: Collecting pystan==2.19.1.1 (from kats) Using cached pystan-2.19.1.1.tar.gz (16.2 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [1 lines of output] Cython>=0.22 and NumPy are required. [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

however, I've checked my Cython and NumPy installation, Cython is 3.0.7 and I've installed NumPy. Can anyone help me out?

fariduca commented 3 months ago

I am facing the same issue

thanhvodc commented 3 months ago

To install without error, let follow steps below:

I have successfully installed kats after following these steps. Good luck.