Solution for the : Error while installing Prophet library on Windows Machine

— — — — — — — — — — — — — — — — — -

Prophet is a forecasting procedure implemented in R and Python. It is fast and provides completely automated forecasts that can be tuned by hand by data scientists and analysts.

ERROR: Command errored out with exit status 1: ‘c:\users\jainh\appdata\local\programs\python\python36\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘“‘“‘C:\\Users\\jainh\\AppData\\Local\\Temp\\pip-install-2fdwkrh9\\fbprophet\\setup.py’”’”’; __file__=’”’”’C:\\Users\\jainh\\AppData\\Local\\Temp\\pip-install-2fdwkrh9\\fbprophet\\setup.py’”’”’;f=getattr(tokenize, ‘“‘“‘open’”’”’, open)(__file__);code=f.read().replace(‘“‘“‘\r\n’”’”’, ‘“‘“‘\n’”’”’);f.close();exec(compile(code, __file__, ‘“‘“‘exec’”’”’))’ install — record ‘C:\Users\jainh\AppData\Local\Temp\pip-record-s_a2wm5m\install-record.txt’ — single-version-externally-managed — compile — install-headers ‘c:\users\jainh\appdata\local\programs\python\python36\Include\fbprophet’ Check the logs for full command output.
ERROR: Command errored out with exit status 1: ‘c:\program files\python37\python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘“‘“‘C:\Users\ARJUNS~1\AppData\Local\Temp\pip-install-v9k4x_8v\fbprophet\setup.py’”’”’; file=’”’”’C:\Users\ARJUNS~1\AppData\Local\Temp\pip-install-v9k4x_8v\fbprophet\setup.py’”’”’;f=getattr(tokenize, ‘“‘“‘open’”’”’, open)(file);code=f.read().replace(‘“‘“‘\r\n’”’”’, ‘“‘“‘\n’”’”’);f.close();exec(compile(code, file, ‘“‘“‘exec’”’”’))’ install — record ‘C:\Users\ARJUNS~1\AppData\Local\Temp\pip-record-pjkjdpel\install-record.txt’ — single-version-externally-managed — compile Check the logs for full command output.

I have the pystan packet already installed

Solution:

I tried many solutions to resolve this issue but lot of time I used to be fade up by Googling and trying out multiple solutions and not yet working with the Prophet library.

I do even tried using the Google Colab platform to run my project work, but there I was popped up and restricted by the errors thrown due to use of Dash in the Python-based Flask Web App.

Finally after lot of struggle and multiple to-and-fro trial-and-error solutions,
I came out with the below steps of solutions which helped me out to complete my final end of the project work I was expected to carry out for my Machine Learning Model build out on the Flask based Web Application in Dask framework.

I had faced same problem. I used “conda” rather than “pip” for installation with steps shown below and it worked magical for me.

step 1: conda install -c anaconda ephemstep 2:conda install -c conda-forge pystanstep 3: conda install -c conda-forge fbprophet

Now you can go ahead with : “from fbprophet import Prophet” in python environment.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Hemant Jain

Sr. SRE at Oracle, Ex-PayPal, Ex-RedHat. Professional Graduate Student interested in Cloud Computing and Advanced Big Data Processing and Optimization.