Prophet has two implementations: R and Python. Note the slight name difference for the Python package.

Installation in R

Prophet is a CRAN package so you can use install.packages:

1
2
# R
> install.packages('prophet')

After installation, you can get started!

Windows

On Windows, R requires a compiler so you’ll need to follow the instructions provided by rstan. The key step is installing Rtools before attempting to install the package.

Installation in Python

Prophet is on PyPI, so you can use pip to install it:

1
2
# bash
$ pip install fbprophet

The major dependency that Prophet has is pystan. PyStan has its own installation instructions.

After installation, you can get started!

Windows

On Windows, PyStan requires a compiler so you’ll need to follow the instructions. The key step is installing a recent C++ compiler.

Linux

Make sure compilers (gcc, g++) and Python development tools (python-dev) are installed. If you are using a VM, be aware that you will need at least 2GB of memory to run PyStan.

Anaconda

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

Edit on GitHub