1. Istallation in Python using PyPI
Prophet is on PyPI, so one can use pip to install it.
python -m pip install prophet
2. Installation in Python using Anaconda
One might have to access Anaconda Prompt
for the environment that one is working with as admin:
And run
conda install -c conda-forge prophet
Or
conda install -c conda-forge prophet -y
3. Development version
To get the latest code changes as they are merged, one can clone this repo and build from source manually. This is not guaranteed to be stable.
git clone https://github.com/facebook/prophet.gitcd prophet/pythonpython -m pip install -r requirements.txtpython setup.py develop
By default, Prophet will use a fixed version of cmdstan
(downloading and installing it if necessary) to compile the model executables. If this is undesired and one would like to use one's existing cmdstan
installation, one can set the environment variable PROPHET_REPACKAGE_CMDSTAN
to False
:
export PROPHET_REPACKAGE_CMDSTAN=False;
Sources
https://facebook.github.io/prophet/docs/installation.html
https://github.com/facebook/prophet
I've had the same problem. But it works after I follow this steps:
On Prompt install Ephem:
conda install -c anaconda ephem
Install Pystan:
conda install -c conda-forge pystan
Finally install Fbprophet
conda install -c conda-forge fbprophet
Latest installation code for 2021:
pip install pystan==2.19.1.1
, then pip install prophet
Also, reboot your jupyter notebook after installation
Install without Conda, Win 10, Python 3.8.8 64 bit
.
pip3 install Cython
Then install:
Reboot your maching
Install
pip3 install pystan==2.17.1.0pip3 install fbprophet
Here's my solution. I have not use conda-forge before, so reading up on this article helps.
conda --version
conda config --add channels conda-forgeconda --set channel_priority strict
conda install gcc
conda install -c conda-forge prophet
I used the prophet documentation here
I faced the same issue and my solution was to:-
Create a new environment with Python3.5
conda create -n pht python=3.5 anaconda
Install Prophet using the command.
conda install -c conda-forge fbprophet
I didn't install 'gcc' although this was advised before installing Prophet.
I am using Python 3.8.5
and conda 4.10.1
on a Windows 10 machine.I was able to install prophet in Anaconda 2.0.1
using command prompt (not as admin), using: conda install -c conda-forge fbprophet
It took some time for it to figure out the details, as you can see from the prompts below, but finally it was able to install the package.
Collecting package metadata (current_repodata.json): doneSolving environment: failed with initial frozen solve. Retrying with flexible solve.Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.Collecting package metadata (repodata.json): doneSolving environment: done