error when running pip install fbprophet
See original GitHub issueHi, 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:
- Created 3 years ago
- Comments:8 (2 by maintainers)
Top GitHub Comments
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:
pip install pystan==2.18.0.0
pip install fbprophet
11 months later
pip install fbprophet
is still broken on Apple Silicon, python 3.9 and python 3.7.