question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error when running pip install fbprophet

See original GitHub issue

Hi, I tried to run pip install fbprophet on docker:

FROM public.ecr.aws/lambda/python:3.8 RUN pip --no-cache-dir install \ ephem \ pystan \ fbprophet

But got the following error: ERROR: Command errored out with exit status 1: command: /var/lang/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-l79apfcp/fbprophet/setup.py'"'"'; __file__='"'"'/tmp/pip-install-l79apfcp/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 /tmp/pip-record-9yrgxbdz/install-record.txt --single-version-externally-managed --compile --install-headers /var/lang/include/python3.8/fbprophet cwd: /tmp/pip-install-l79apfcp/fbprophet/ Complete output (10 lines): running install running build running build_py creating build creating build/lib creating build/lib/fbprophet creating build/lib/fbprophet/stan_model Importing plotly failed. Interactive plots will not work. INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_dfdaf2b8ece8a02eb11f050ec701c0ec NOW. error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /var/lang/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-l79apfcp/fbprophet/setup.py'"'"'; __file__='"'"'/tmp/pip-install-l79apfcp/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 /tmp/pip-record-9yrgxbdz/install-record.txt --single-version-externally-managed --compile --install-headers /var/lang/include/python3.8/fbprophet Check the logs for full command output. WARNING: You are using pip version 20.2.1; however, version 20.3.3 is available. You should consider upgrading via the '/var/lang/bin/python3.8 -m pip install --upgrade pip' command.

please recommend on workaround, Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

39reactions
octavdcommented, Mar 16, 2021

Hey,

I had this problem also but i’ve managed to make it work with the following workaround.

Before installing fbprophet you have to install pystan.

However if you will install like this -> pip install pystan it will fail at building fbprophet because it will grab version 2.19.. that is not compatible with GCC version.

Solution:

  1. pip install pystan==2.18.0.0

  2. pip install fbprophet

13reactions
epignatellicommented, Feb 9, 2022

11 months later pip install fbprophet is still broken on Apple Silicon, python 3.9 and python 3.7.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error pip installing fbprophet, pystan installed fine, I tried ...
I am using python 3.6.7. I tried 3.7 and 3.8. pystan install successfully. I tried different versions of pystan as others suggested. I...
Read more >
Fixing error fbprophet | Data Science and Machine Learning
Hy guys. I'm facing some error to pip install fbprophet. Does anyone know how to fix this error? ** ERROR: Command errored out...
Read more >
Solution for the : Error while installing Prophet library on ...
Solution for the : Error while installing Prophet library on Windows Machine. I'm trying to install fbprophet using pip on windows10 and the...
Read more >
How to Install Prophet Library on Windows, Issues and Fixes
1. Using pip install for Prophet, you get an error: “running setup.py install for prophet ... error”. Use Anaconda to install: conda install...
Read more >
Installation | Prophet - Meta Open Source
Installation in Python · From v0.6 onwards, Python 2 is no longer supported. · As of v1.0, the package name on PyPI is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found