Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing fbprophet Python on Windows 10

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.

like image 548
Bharat Avatar asked Nov 06 '18 18:11

Bharat


People also ask

How do I install Fbprophet on Windows 10?

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. libpython will automatically create and setup distutils.

How do I install Fbprophet?

Use conda install gcc to set up gcc. The easiest way to install Prophet is through conda-forge: conda install -c conda-forge fbprophet .

Is Prophet the same as Fbprophet?

It's by the same devs. Seems it was just a name change.


2 Answers

  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
    
like image 58
Akash Ukarande Avatar answered Nov 01 '22 09:11

Akash Ukarande


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

like image 24
Luana Formiga Avatar answered Nov 01 '22 07:11

Luana Formiga