Installing fbprophet Python on Windows 10

  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
    

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