9
votes

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.

6

6 Answers

4
votes

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

8
votes

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
5
votes

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

4
votes

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

0
votes

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.

0
votes

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