Skip to content Skip to sidebar Skip to footer

How To Install Fbprophet For Python 3.7 (anaconda Distribution)

I attempted to use fbprophet for time series analysis using Python. I ran from fbprophet import Prophet but got No module named 'fbprophet' I think fbprophet is not part of package

Solution 1:

Option 1

conda install -n [NameOfVEnv] -c conda-forge fbprophet

Where -c stands for "channel" which is

the locations where Navigator and conda look for packages. (Source)

and -n for "Name of environment".

I just tried here (on CentOS 7) and it worked fine.


Option 2

An alternative, if one is using Windows 10, is to access Anaconda Promptfor the environment that you are working with as admin:

Access Anaconda Prompt as admin

And run

conda install -c conda-forge fbprophet

I just tried here (on Windows 10 64-bit) and it worked fine.


Option 3

Prophet is on PyPI, so you can use pip to install it (Source)

# bash# Install pystan with pip before using pip to install fbprophet$ pip install pystan
$
$ pip install fbprophet

You may need to install dependencies (in both options), but it asks you in the prompt window. If it appears, you will need to enter Y.

Solution 2:

you just search the wrong letter, please enter pip search fbprophet,in the way, i can get two

Solution 3:

I installed this way:

pip install pystan==2.19.1.1

then:

pip install prophet

It seems that currently pystan version 3 is not working properly. (Tested on MacOS)

Solution 4:

You can check this official github link where the detailed steps for installation is given. This library is supported only in Python 3.

Open cmd, run this command -

pip install pystan==2.19.1.1

Then run this-

pip install prophet

Post a Comment for "How To Install Fbprophet For Python 3.7 (anaconda Distribution)"