Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prophet / fbprophet package in Python

Can someone explain how to install Prophet on Python3?

I tried pip install fbprophet but it did not work.

Tried to do this in the notebook after importing pandas and sklearn and got another error:

import pandas as pd
import sklearn as sk
from fbprophet import Prophet
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-4-f503e9c6cf11> in <module>()
----> 1 from fbprophet import Prophet

ModuleNotFoundError: No module named 'fbprophet'
like image 322
Toly Avatar asked Jun 12 '18 02:06

Toly


People also ask

What is Fbprophet in Python?

Prophet is a forecasting procedure implemented in R and Python. It is fast and provides completely automated forecasts that can be tuned by hand by data scientists and analysts. Install Prophet. Get started in R. Get started in Python.

How do I install Fbprophet?

Use conda install gcc to set up gcc. The easiest way to install Prophet is through conda-forge: conda install -c conda-forge fbprophet .

Is Fbprophet and Prophet same?

It's by the same devs. Seems it was just a name change.


Video Answer


2 Answers

First you have to Install c++ compiler, you can install c++ compiler with below command -

conda install libpython m2w64-toolchain -c msys2

Once c++ compiler installed you have to install pystan, to install pystan you can use below command

pip install pystan

Finally, now we are ready to install facebook prophet -

pip install fbprophet

Hope this is helpful..

For more details follow this link - https://facebook.github.io/prophet/docs/installation.html

like image 193
Brijesh Rana Avatar answered Sep 23 '22 16:09

Brijesh Rana


Easiest way is to install fbprophet :

conda install -c conda-forge fbprophet

This will download all the needed packages first.

Then ->

  conda install -c conda-forge/label/cf201901 fbprophet
like image 23
Al Jaber Nishad Avatar answered Sep 23 '22 16:09

Al Jaber Nishad