构建 Docker 镜像安装 prophet 时失败,与python-holidays 库不兼容解决

=> ERROR [package 9/10] RUN python setup.py install 0.9s ------ > [package 9/10] RUN python setup.py install: 0.439 running install 0.477 running bdist_egg ...

0.762 TypeError: This is a python-holidays entity loader class. For entity inheritance purposes please import a class you want to derive from directly: e.g., `from holidays.countries import Entity` or `from holidays.financial import Entity`[+] Running 0/1 - Service package Building 468.1s failed to solve: process "/bin/sh -c python setup.py install" did not complete successfully: exit code: 1

构建Docker 镜像安装 prophet 时失败,原因是与python-holidays 库不兼容

查看requirement.txt,prophet的版本为1.0.1,(我使用的是Python3.7)

这个版本比较老,所以在requirement.txt中将python-holidays的版本改为0.10.3即可

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值