facebook / prophet

Tool for producing high quality forecasts for time series data that has multiple seasonality with linear or non-linear growth.
https://facebook.github.io/prophet
MIT License
18.03k stars 4.48k forks source link

Error installing fbprophet #2421

Open tref98 opened 1 year ago

tref98 commented 1 year ago

I am installing as follows: !pip install pystan !pip install numpy !pip install pandas !pip install -U setuptools !pip install -U Cython !pip install fbprophet and sends the following errors: error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. Building wheel for fbprophet (setup.py) ... error ERROR: Failed building wheel for fbprophet Running setup.py clean for fbprophet Failed to build fbprophet WARNING: Ignoring invalid distribution -ystan (/usr/local/lib/python3.10/dist-packages) Installing collected packages: fbprophet error: subprocess-exited-with-error

× Running setup.py install for fbprophet did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. Running setup.py install for fbprophet ... error error: legacy-install-failure

× Encountered error while trying to install package. ╰─> fbprophet

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

waranyoghes commented 1 year ago

Hi @tref98. I think this should solve your problem.

python -m pip install prophet

cgobat commented 1 year ago

Have you tried following the Python installation instructions? As of v1.0, the module name is prophet, not fbprophet. Also note the Python>=3.7 requirement starting with prophet v1.1.

theisen1337 commented 1 year ago
prophet

Does not work on alpine dockers.

The latest version that works is:

fbprophet==0.7.1

Unless there is now a version that supports Alpine, if so please state the minimum version that works.

cgobat commented 1 year ago

There's no indication that the person who posted this issue was using Alpine or that it was the source of their problem. The answers you see above were never intended to have anything to do with Alpine or your specific issue with it. Also, note that it was fbprophet that @tref98 was having trouble installing (which you say works for your setup), so it's clearly not the same error. I'd recommend opening a new issue for your (seemingly unrelated) problem.