Troubleshooting
Problem
I have a Python 3.7 notebook. I have installed fbprophet with the following command:
!conda install -c conda-forge fbprophet
I then add a data asset and run the documentation example (https://facebook.github.io/prophet/docs/quick_start.html)
import pandas as pd
from fbprophet import Prophet
df = pd.read_csv('/project_data/data_asset/test.csv')
df.head()
m = Prophet()
m.fit(df)
When I run this, the kernel dies. I have a runtime environment of 1 CPU and 4GB.
Cause
This is a known issue with fbprophet and conda; some native libraries are incompatible.
Environment
Python 3.7 runtime
Resolving The Problem
Use pipy instead of conda-forge to install fbprophet.
That consists in doing the following:
!conda install pystan=2.17.1.0 convertdate holidays
!pip install LunarCalendar
!pip install fbprophet
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSHGYS","label":"IBM Cloud Pak for Data"},"ARM Category":[{"code":"a8m0z000000GoylAAC","label":"Troubleshooting"}],"ARM Case Number":"TS007447907","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]
Was this topic helpful?
Document Information
Modified date:
11 November 2021
UID
ibm16515608