‘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 using a pipenv. Here is my Pipfile

numpy = "~=1.20.2"
pystan = "~="
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