Open xiaogangzhu opened 1 year ago
I see there is a lot of bug installing kats, can someone help improve the install performance? It will be of great help.
I also face same error. Help to resolve.
Same. I tried creating a virtual environment with conda create -n ts python=3.9
on my windows laptop and then simply pip install kats
, but no luck.
it works for me with : conda install compilers -c conda-forge pip install --upgrade --no-deps --force-reinstall fbprophet
I'm having the same issue as well. My forecasting project was working prior to today but now it seems to be throwing the same issue when pip installing kats:
I'm having the same issue. Any resolution for this?
This installation works for me.
Create conda environment in a particular directory
conda create --prefix ./env python=3.7
Install fbprophet
conda install -c conda-forge fbprophet
Install Kats
pip install kats
Downgrade Packaging to 21.3
Change the line 178 in the site-packages\holidays\registry.py file in conda environment from super().init(*args, **kwargs) to super().init()
I got the same error as @xiaogangzhu when installing. I used python 3.7 as I noticed the requirements.txt says <python3.8
for two libs, but building fbprophet
still dies. I actually managed to get to where it complains that pystan
is not installed (although it is).
Don't use requirement.txt, the simplest installation can be made using conda env. I did it today and is working
This installation works for me.
Create conda environment in a particular directory
conda create --prefix ./env python=3.7
Install fbprophet
conda install -c conda-forge fbprophet
Install Kats
pip install kats
Downgrade Packaging to 21.3
Change the line 178 in the site-packages\holidays\registry.py file in conda environment from super().init(*args, **kwargs) to super().init()
It worked like a charm, thanks! However, I would like to add that I ended up installing a specific version of the packaging library (conda install packaging=21.3
) for kats to work.
@waqarahmed6095 conda install -c conda-forge kats
fails for me in a new 3.7 conda env. I'm giving up on this for now.
no dont use conda install -c conda-forge kats directly. See the process https://github.com/facebookresearch/Kats/issues/308#issuecomment-1556997292 do first
conda install -c conda-forge fbprophet
This installation works for me.
Create conda environment in a particular directory
conda create --prefix ./env python=3.7
Install fbprophet
conda install -c conda-forge fbprophet
Install Kats
pip install kats
Downgrade Packaging to 21.3
Change the line 178 in the site-packages\holidays\registry.py file in conda environment from super().init(*args, **kwargs) to super().init()
On Tue May 23, 2023 at 10:19, waqarahmed6095 wrote:
no dont use conda install -c conda-forge kats directly. See the process https://github.com/facebookresearch/Kats/issues/308#issuecomment-1556997292
Thanks, I saw that, but such a manual install means it's not maintainable or easily reproducible, which makes it no-go for me.
@ferdinandyb you have to do such installation for many libararies as they are not full maintainable
I'm not sure this would help anyone but just in case. The answer https://github.com/facebookresearch/Kats/issues/308#issuecomment-1558768567 helped me thanks, however it didn't work straight away. I had problems installing prophet. There are some open issues about it in the repository. Using python 3.7 in a fresh environment, the following worked for me:
pip install numpy pip install pandas pip install convertdate pip install lunarcalendar pip install holidays==0.23 pip install tqdm pip install pystan==2.19.1.1 pip install fbprophet==0.7.1 pip install kats pip install Packaging==21.3
@crisjosil's method works for me! looks like a quick and great solution at the moment
I'm not sure this would help anyone but just in case. The answer #308 (comment) helped me thanks, however it didn't work straight away. I had problems installing prophet. There are some open issues about it in the repository. Using python 3.7 in a fresh environment, the following worked for me:
pip install numpy pip install pandas pip install convertdate pip install lunarcalendar pip install holidays==0.23 pip install tqdm pip install pystan==2.19.1.1 pip install fbprophet==0.7.1 pip install kats pip install Packaging==21.3
Actually this used to give me the original problem, but using Python 3.8 solved it
I am now having the same issue. I have tried all of the things listed above and still no luck. The solution by @crisjosil doesn't work for me and using python 3.8 as @SamuMazzi suggested didn't work either. Now I'm stuck.
I'm having the same issue and I'm using python 3.11.2 any leads?
conda create --(your env name) python=3.7
conda install libpython m2w64-toolchain -c msys2
conda install numpy cython -c conda-forge
conda install matplotlib scipy pandas -c conda-forge
conda install pystan -c conda-forge
conda install fbprophet -c conda-forge
finally just
pip install kats
None of the proposed solutions worked for me directly, but they led me to find an absolute solution that works for me pretty well: (Windows 10)
Step 1: Install Anaconda on your system (https://www.anaconda.com/download) Step 2: Create a fresh Environment on your Anaconda with Python 3.8 Step 3: Open the Terminal of the new Environment Step 4: Install Ephem (https://anaconda.org/anaconda/ephem) Step 5: Install Pystan (https://anaconda.org/conda-forge/pystan) Step 6: Install Fbprophet (https://anaconda.org/conda-forge/fbprophet) Step 7: Install Kats (https://anaconda.org/conda-forge/kats) Step 8: Install Packaging 23.1 (https://anaconda.org/conda-forge/packaging/) Step 9: Open Jupyter Notebook through the new Environment Step 10: Import Kats library (from kats.consts import TimeSeriesData) Step 11: Again install Packaging 23.1 (https://anaconda.org/conda-forge/packaging/) Step 12: Run the cell
You have to always repeat Step 8 before using Kats if you don't want to get an Error!
The above method works on Mac as well, just tested. One thing to recorrect, should be: install Packaging 21.3 instead of 23.1. :)
Got fail always when pip install kats
This is python 3.8.Anyone helps?