=> 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即可