【发布时间】:2020-10-26 10:33:58
【问题描述】:
我正在尝试在 python 中使用 arch 模块。安装后,我通过执行from arch import arch_model成功导入arch_model。
但是,我还需要使用其他功能,例如 ConstantMean,如维护者 github here 中所述。
然而,当我尝试导入它时,它给了我以下错误:
ImportError:无法从“arch”导入名称“ConstantMean” (C:\Users\frede\anaconda3\envs\earnings_risk\lib\site-packages\arch_init_.py)
当我通过dir(arch) 检查模块中可用的功能时,它也没有列出ConstantMean,也没有列出根据文档理论上应该可用的大多数其他功能。这可能是什么原因?任何帮助表示赞赏。
【问题讨论】:
标签: python