Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install error for kats 0.2.0 #324

Open
Shishykish opened this issue Aug 13, 2023 · 1 comment
Open

pip install error for kats 0.2.0 #324

Shishykish opened this issue Aug 13, 2023 · 1 comment

Comments

@Shishykish
Copy link

Shishykish commented Aug 13, 2023

Hello,

I have the following environment
Anaconda - latest
Python - latest

I will use pip install kats in the usual way. Then I get the following error.

`Collecting pystan==2.19.1.1 (from kats==0.2.0)
  Using cached pystan-2.19.1.1.tar.gz (16.2 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\Kishan\AppData\Local\Temp\pip-install-l2gn3u7j\pystan_4e87c29debc5432ab5b3a78dddb4be13\setup.py", line 122, in <module>
          from Cython.Build.Inline import _get_build_extension
      ModuleNotFoundError: No module named 'Cython'
      [end of output]`

Can anyone offer some suggestions? or tell me where else to look.

@nistrup
Copy link

nistrup commented Jan 3, 2025

I had the same issue using Python 3.10, I tired rolling back to 3.9, same issue, finally rolled back to 3.7 and it fixed the issue.

Specifically I did this:

# Install Python 3.7 and 3.7 Dev
sudo apt update                              
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get install python3.7
sudo apt-get install python3.7-dev

# Create virtual environment
python3.7 -m venv venv37
source venv37/bin/activate

# Pip install packages in the following order
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants