VOOZH about

URL: https://qiita.com/toshitanian/items/5da24c0c0bd473d514c8

⇱ OpenCVをPythonで動かそうとしてlibGL.soが無いって言われたけど解決した。 #Python - Qiita


👁 Image
63

Go to list of users who liked

47

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

@toshitanianin👁 Image
ABEJA, Inc.

OpenCVをPythonで動かそうとしてlibGL.soが無いって言われたけど解決した。

63
Posted at

Docker上でOpenCVのPythonBindingを動かそうとしたらエラーがでた。

import cv2
ImportError: libGL.so.1: cannot open shared object fil e: No such file or directory

Dockerfile

FROM continuumio/anaconda3
RUN apt-get update
RUN conda install opencv -c conda-forge
RUN pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.4.0rc0-cp36-cp36m-linux_x86_64.whl
COPY run.py /run.py
CMD python /run.py

以下のコマンドで解決した。

#apt-get install -y libgl1-mesa-dev

他の人に聞いたら以下のコマンドでも解決したらしい。

#apt-get install -y libglib2.0-0 libsm6 libxrender1 libxext6
63

Go to list of users who liked

47
1

Go to list of comments

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
63

Go to list of users who liked

47