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.88k stars 534 forks source link

Got an error with numpy when I do "pip install kats", any tips? #280

Open miguelc3 opened 1 year ago

miguelc3 commented 1 year ago

image

binaryyskull commented 1 year ago

I have the same error..

smlee729 commented 1 year ago

Same here..

cbergmeir commented 1 year ago

This is caused by wrong Python and/or numpy versions, I think. I got the same error, but with conda I could get exactly Python 3.9 and numpy=1.21, which is the version specified in requirements.txt

I think the install routine tries to install numpy=1.21 on a Python that is too new for it.

ujjwalbhatnagar commented 1 year ago

To solve this, I recommend to try to create a new conda environment with Python 3.9 and install numpy=1.21 first and then install the other packages in the requirements.txt.

For example, to create a new environment with Python 3.9, you can use the following command (in command prompt): conda create -n my_env python=3.9

Then, activate the environment using: conda activate my_env

Finally, you can install numpy version 1.21 using: conda install numpy=1.21

After that, you can install the rest of the packages listed in the requirements.txt.