在使用Python库'fbprophet'时抛出错误,TypeError:'module'对象不可调用
import fbprophet as Prophet
m = Prophet(weekly_seasonality= True)
执行时会引发此错误,
Traceback (most recent call last):
File "<ipython-input-7-53e30b441246>", line 1, in <module>
m = Prophet(weekly_seasonality= True)
TypeError: 'module' object is not callable
答案 0 :(得分:1)
使用
解决m = Prophet.Prophet(weekly_seasonality= True)