0

I'm trying to use Facebook prophet for a project. The problem is that when I try to use it I have an error :

'Prophet' object has no attribute 'stan_backend'

when I initialize the prophet

from prophet import Prophet
m = Prophet()

I have installed prophet and pystan 1.19.1.1 using a pipenv. Here is my Pipfile

numpy = "~=1.20.2"
pystan = "~=2.19.1.1"
prophet = "~=1.0.1"

Any idea of what am I doing wrong? The strangest part is that when I make test on a jupyter notebook I don't get this problem (in that case I just used pip to install prophet)

By the way I'm on IntelliJ since I also use java in my project

Jimmy Fraiture
  • 364
  • 1
  • 2
  • 14

1 Answers1

0

This method works for me :
Creating new environment and use conda install -c conda-forge prophet in cmd

Domarm
  • 1,875
  • 1
  • 3
  • 14
hy Lee
  • 1