在使用Google的TPU时,在Colab中导入Causal Impact时出现问题。

huangapple go评论75阅读模式
英文:

Problems importing Causal Impact in Colab when using Google's TPU's

问题

每当我尝试在使用Google的TPU时导入Causal Impact时,我会收到以下错误:

在使用Google的TPU时,在Colab中导入Causal Impact时出现问题。

我觉得很奇怪,因为只要我不使用任何类型的硬件加速器,我就能成功导入它。有人知道我可能做错了什么吗?

附言:我安装了0.2.6版本的这个包。

英文:

Whenever I try to import Causal Impact when using Google's TPU's I get the following error:

在使用Google的TPU时,在Colab中导入Causal Impact时出现问题。

I find it weird, because I am able to import it when using whenever I´m not using any type of hardware accelerator. Does anybody knows what may I be doing wrong?

P.S: I've got the 0.2.6 version of the package installed.

答案1

得分: 1

问题似乎源自numba模块。升级numba,然后安装causalimpact对我有用,见下面的代码块。

!pip install --upgrade numba
!pip install causalimpact

from causalimpact import CausalImpact

英文:

The issue seems to stem from the numba module. Upgrading numba then installing causalimpact worked for me, see the code block below.

!pip install --upgrade numba
!pip install causalimpact

from causalimpact import CausalImpact

huangapple
  • 本文由 发表于 2023年7月11日 03:58:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/76656951.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定