Installing fbprophet Python on Windows 10

Bharat picture Bharat · Nov 6, 2018 · Viewed 25.3k times · Source

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.

Answer

Akash Ukarande picture Akash Ukarande · Dec 31, 2018

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.

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 in PYTHONPATH\Lib\distutils, but if that is failed use the following instructions to setup it manually

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