‘Prophet’ object has no attribute ‘stan_backend’

  facebook-prophet, intellij-idea, pip, pipenv, python

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

Source: Python Questions

LEAVE A COMMENT