11

My build keeps failing on windows 10 for installing fbprophet in anaconda with the following message:

ERROR conda.core.link:_execute(502): An error occurred while installing package 'conda-forge::automat-0.7.0-py_1'.
CondaError: Cannot link a source that does not exist. C:\Users\bharat.c.ruparel\AppData\Local\Continuum\anaconda3\Scripts\conda.exe

the command that is given is:

conda install -c conda-forge fbprophet

Has anyone successfully installed fbprophet on Windows 10? If yes, then please give the steps.

Thanks. I tried pip install as well but no luck. I have a Mac and managed to install fbprophet on it without any issues.

Gonçalo Peres
  • 6,010
  • 3
  • 36
  • 66
Bharat
  • 2,249
  • 5
  • 29
  • 52

8 Answers8

21
  1. First install Anaconda or miniconda in your Windows machine and add conda python path to env variable as default python.

  2. Open your command prompt and run following commands.

  3. Create a conda virtual environment (optional)

    conda create -n v-env python=3.7
    
    activate v-env
    
  4. Install c++ complier

    conda install libpython m2w64-toolchain -c msys2
    

    libpython will automatically create and setup distutils.cfg file for you in PYTHONPATH\Lib\distutils, but if that is failed use the following instructions to setup it manually

    [OPTIONAL]

    create distutils.cfg with text editor (e.g. notepad, notepad++) and add the following lines to that file.

    [build]
    compiler=mingw32
    
  5. Install dependencies

    conda install numpy cython -c conda-forge
    
    conda install matplotlib scipy pandas -c conda-forge
    
  6. Install PyStan

    pip install pystan
    
    or 
    
    conda install pystan -c conda-forge
    
  7. Install Ephem

    conda install -c anaconda ephem
    
  8. Install fbprophet

    pip install fbprophet
    
    or 
    
    conda install -c conda-forge fbprophet
    
Akash Ukarande
  • 331
  • 1
  • 5
10

I also faced installing facebook prophet issue in windows 10 without conda. But,we can solve it. First, uninstall any pystan, fbprophet. Then follow the steps below,

python.exe -m pip install pystan==2.17.1.0
python.exe -m pip install fbprophet==0.6   
python.exe -m pip install --upgrade fbprophet

Thanks, tsj

sundarr
  • 365
  • 2
  • 8
  • Does not work for me on Python 3.8; fails at step "Building wheel for pystan". [IgorJerosimić](https://stackoverflow.com/users/111433/igor-jerosimi%c4%87) : Which C++ compiler do you have? (Tried with rtools 4.0 which includes mingw32) – pruefsumme Aug 09 '21 at 14:13
  • Worked for me too, and I just did a pip install fbprophet, instead of install and upgrade, after the pystan install, so probably something to do with the pystan version. In this link https://facebook.github.io/prophet/docs/installation.html#installation-in-python, they mention pystan version 2.19.1.1 – racerX Aug 26 '21 at 23:13
8

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

Igor Skoric
  • 623
  • 4
  • 14
Luana Formiga
  • 81
  • 1
  • 1
7

Access Anaconda Prompt for the environment that you are working with as admin:

Access Anaconda Prompt as admin

And run

conda install -c conda-forge fbprophet -y

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


Here is Prophet's suggestion using 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

Gonçalo Peres
  • 6,010
  • 3
  • 36
  • 66
3

Latest installation code for 2021:

pip install pystan==2.19.1.1, then pip install prophet

Also, reboot your jupyter notebook after installation

Stanley Zheng
  • 669
  • 2
  • 8
  • 20
Inuganhu
  • 31
  • 3
2

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.0

pip3 install fbprophet
Thavas Antonio
  • 5,542
  • 1
  • 11
  • 33
1

Here's my solution. I have not use conda-forge before, so reading up on this article helps.

  1. Making sure that conda is ≥4.9
conda --version
  1. add conda forge channel
conda config --add channels conda-forge
conda --set channel_priority strict
  1. install gcc
conda install gcc
  1. install prophet
conda install -c conda-forge prophet

I used the prophet documentation here

cherice.c
  • 46
  • 3
0

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.

Regi Mathew
  • 2,185
  • 3
  • 20
  • 34