python fbprophet错误,TypeError:“模块”对象不可调用

时间:2019-08-03 15:30:22

标签: python module pypi

在使用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

1 个答案:

答案 0 :(得分:1)

使用

解决
m = Prophet.Prophet(weekly_seasonality= True)