Open Akkarine opened 2 years ago
Could you try to install pystan==2.19.1.1
first before installing Prophet? See https://github.com/facebook/prophet#installation-in-python
Pystan is required to build the wheel for Prophet.
Thank you, that helped. But I've added also all other sub-dependencies:
...
&& pip install pymeeus ujson korean-lunar-calendar hijri-converter ephem convertdate setuptools-git pystan==2.19.1.1 LunarCalendar holidays cmdstanpy \
&& pip install prophet \
...
Building on clean docker image python:3.9.6-buster
Warning log
```logs Collecting prophet Downloading prophet-1.0.1.tar.gz (65 kB) Requirement already satisfied: Cython>=0.22 in /usr/local/lib/python3.9/site-packages (from prophet) (0.29.24) Collecting cmdstanpy==0.9.68 Downloading cmdstanpy-0.9.68-py3-none-any.whl (49 kB) Collecting pystan~=2.19.1.1 Downloading pystan-2.19.1.1.tar.gz (16.2 MB) Requirement already satisfied: numpy>=1.15.4 in /usr/local/lib/python3.9/site-packages (from prophet) (1.21.1) Requirement already satisfied: pandas>=1.0.4 in /usr/local/lib/python3.9/site-packages (from prophet) (1.3.1) Requirement already satisfied: matplotlib>=2.0.0 in /usr/local/lib/python3.9/site-packages (from prophet) (3.4.2) Collecting LunarCalendar>=0.0.9 Downloading LunarCalendar-0.0.9-py2.py3-none-any.whl (18 kB) Collecting convertdate>=2.1.2 Downloading convertdate-2.3.2-py3-none-any.whl (47 kB) Collecting holidays>=0.10.2 Downloading holidays-0.11.2-py3-none-any.whl (142 kB) Collecting setuptools-git>=1.2 Downloading setuptools_git-1.2-py2.py3-none-any.whl (10 kB) Requirement already satisfied: python-dateutil>=2.8.0 in /usr/local/lib/python3.9/site-packages (from prophet) (2.8.2) Requirement already satisfied: tqdm>=4.36.1 in /usr/local/lib/python3.9/site-packages (from prophet) (4.61.2) Collecting ujson Downloading ujson-4.0.2-cp39-cp39-manylinux1_x86_64.whl (179 kB) Requirement already satisfied: pytz>=2014.10 in /usr/local/lib/python3.9/site-packages (from convertdate>=2.1.2->prophet) (2021.1) Collecting pymeeus<=1,>=0.3.13 Downloading PyMeeus-0.5.11.tar.gz (5.4 MB) Collecting hijri-converter Downloading hijri_converter-2.1.3-py3-none-any.whl (14 kB) Collecting korean-lunar-calendar Downloading korean_lunar_calendar-0.2.1-py3-none-any.whl (8.0 kB) Requirement already satisfied: six in /usr/local/lib/python3.9/site-packages (from holidays>=0.10.2->prophet) (1.16.0) Collecting ephem>=3.7.5.3 Downloading ephem-4.0.0.2-cp39-cp39-manylinux2010_x86_64.whl (1.2 MB) Requirement already satisfied: pyparsing>=2.2.1 in /usr/local/lib/python3.9/site-packages (from matplotlib>=2.0.0->prophet) (2.4.7) Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.9/site-packages (from matplotlib>=2.0.0->prophet) (0.10.0) Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.9/site-packages (from matplotlib>=2.0.0->prophet) (1.3.1) Requirement already satisfied: pillow>=6.2.0 in /usr/local/lib/python3.9/site-packages (from matplotlib>=2.0.0->prophet) (8.3.1) Building wheels for collected packages: prophet, pymeeus, pystan Building wheel for prophet (setup.py): started Building wheel for prophet (setup.py): finished with status 'error' ERROR: Command errored out with exit status 1: command: /usr/local/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qbsnyz58/prophet_4eb77a6d036e41b29b6e60177b757235/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qbsnyz58/prophet_4eb77a6d036e41b29b6e60177b757235/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-n3f90iz5 cwd: /tmp/pip-install-qbsnyz58/prophet_4eb77a6d036e41b29b6e60177b757235/ Complete output (44 lines): running bdist_wheel running build running build_py creating build creating build/lib creating build/lib/prophet creating build/lib/prophet/stan_model Traceback (most recent call last): File "https://github.com/pypa/pip/issues/8368#issuecomment-888932590