Installing fbprophet Python on Windows 10
First install Anaconda or miniconda in your Windows machine and add conda python path to env variable as default python.
Open your command prompt and run following commands.
Create a conda virtual environment (optional)
conda create -n v-env python=3.7 activate v-env
Install c++ complier
conda install libpython m2w64-toolchain -c msys2
libpython will automatically create and setup
distutils.cfg
file for you inPYTHONPATH\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
Install dependencies
conda install numpy cython -c conda-forge conda install matplotlib scipy pandas -c conda-forge
Install PyStan
pip install pystan or conda install pystan -c conda-forge
Install Ephem
conda install -c anaconda ephem
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