Kats installation failure due to Cython and numpy
XinyeZhao opened this issue · comments
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?
I am facing the same issue
To install without error, let follow steps below:
- Using python version < 3.8 (3.7 recommendation).
- Having a look on requirements.txt, and installing all of those packages.
- Try pip install kats again.
I have successfully installed kats after following these steps. Good luck.