【问题标题】:Lightgbm inside docker libgomp.so.1: cannot open shared object filedocker libgomp.so.1中的Lightgbm:无法打开共享对象文件
【发布时间】:2019-03-07 05:37:18
【问题描述】:

我在我的 Mac 中安装了 LightGBM,并在之前针对不同的项目进行了测试。

现在我在我的 mac 上使用 python 3.6 的 docker 内。一旦我在我的 Flask 应用程序中添加import lightgbm as lgbm,我就会收到错误

OSError: libgomp.so.1: cannot open shared object file: No such file or directory

发生了什么事?谁能推荐一下?

【问题讨论】:

  • 你能解决这个问题吗?你能发布解决方案吗?
  • 是的,我基本上忘记在 docker 内的安装列表中包含 libgomp

标签: python docker-compose lightgbm


【解决方案1】:

这对我有用,将其包含在您的 dockerfile 中

RUN apt-get update && apt-get install -y --no-install-recommends apt-utils
RUN apt-get -y install curl
RUN apt-get install libgomp1

来源:https://github.com/microsoft/LightGBM/issues/2223#issuecomment-499788066

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-05-24
    • 2014-02-10
    • 1970-01-01
    • 2011-12-23
    • 2012-10-14
    • 2011-02-06
    • 2013-04-21
    • 2013-05-05
    相关资源
    最近更新 更多