英文:
Problems importing Causal Impact in Colab when using Google's TPU's
问题
每当我尝试在使用Google的TPU时导入Causal Impact时,我会收到以下错误:
我觉得很奇怪,因为只要我不使用任何类型的硬件加速器,我就能成功导入它。有人知道我可能做错了什么吗?
附言:我安装了0.2.6版本的这个包。
英文:
Whenever I try to import Causal Impact when using Google's TPU's I get the following error:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论