While trying to install fbprophet, the installation gets stuck at this part
Building wheels for collected packages: prophet Building wheel for prophet (setup.py) ... | pystan and ephem have been installed. Os-ubuntu 20.04
While trying to install fbprophet, the installation gets stuck at this part
Building wheels for collected packages: prophet Building wheel for prophet (setup.py) ... | pystan and ephem have been installed. Os-ubuntu 20.04
You need to install pystan
before fbprophet
.
The default dependency that Prophet has is pystan. PyStan has its own installation instructions. Install pystan with pip before using pip to install prophet.
python3 -m pip install pystan==2.19.1.1
sudo apt install python3-dev
python3 -m pip install prophet
In Ubuntu 21.04, I followed these instructions
https://github.com/facebook/prophet/blob/b75844e07c3b09bf3bc383c9d43241c554dd251b/Dockerfile
FROM python:3.7-stretch
RUN apt-get -y install libc-dev
RUN pip install pip==19.1.1
COPY python/requirements.txt .
RUN pip install -r requirements.txt
...
I installed the python dependencies
sudo apt-get update; sudo apt-get install make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
I installed python 3.7.10 with pyenv.
I installed the requirements
Cython>=0.22
cmdstanpy==0.9.68
pystan~=2.19.1.1
numpy>=1.15.4
pandas>=1.0.4
matplotlib>=2.0.0
LunarCalendar>=0.0.9
convertdate>=2.1.2
holidays>=0.10.2
setuptools-git>=1.2
python-dateutil>=2.8.0
tqdm>=4.36.1
And I installed prophet
pip install prophet
build the docker image from this docker-compose.yaml
docker-compose build package
With that, you can use the built image.
This should work in Ubuntu: After making sure you have the right python version. Update apt and install following libraries.
sudo apt update
sudo apt install python3-dev python3-pip python3-venv
use python3 -m pip to install pystan and prophet
python3 -m pip install pystan
python3 -m pip install prophet
i did use conda and worked for me
conda install gcc_linux-64 gxx_linux-64 -c anaconda
conda install pystan -c conda-forge
conda install --yes \
-c conda-forge fbprophet
Just an update
I recently faced this issue on AWS EC2 running t2.micro with Ubuntu 20.
Some great guy bought us prebuilt wheels for prophet, here's the link
Pystan2 is no longer maintained and possibly the source of the issue.
In my case, I installed prophet locally from