import fbprophet faild in env(python2.7.5, centos7).
import fbprophet
ERROR:fbprophet.plot:Importing matplotlib failed. Plotting will not work
solution:
check Tkinter
yum install python-tools
This indicates that there was an ImportError on one of the following:
from matplotlib import pyplot as plt
from matplotlib.dates import MonthLocator, num2date
from matplotlib.ticker import FuncFormatter
(https://github.com/facebook/prophet/blob/master/python/fbprophet/plot.py#L21)
I would guess that matplotlib is not installed.
Even the matplotli is installed, the problem is still there.
Can you try each of these commands and see if one of them raises an ImportError?
from matplotlib import pyplot as plt
from matplotlib.dates import MonthLocator, num2date
from matplotlib.ticker import FuncFormatter
I had the same error, and fixed it by refer this question
simple run this command pip install --upgrade plotly.
From SOF
upgrading plotly worked for this problem !
I was able to do pip install --upgrade plotly and it said requirement already met. But, I still see the error ERROR - Importing matplotlib failed. Plotting will not work. Any thoughts/ideas ? Mine is a linux machine and already have C++ compiler equivalent.
@akira1005 what this means is actually just that matplotlib plotting won't work; plotly plotting should still work fine. We need to clarify the message there.
simple run this command
pip install --upgrade plotly.
From SOF
Thanks a lot. Worked for me
Most helpful comment
simple run this command
pip install --upgrade plotly.From SOF