从.cv2 import * ImportError:libgthread-2.0.so.0:无法打开共享对象文件:没有这样的文件或目录

时间:2018-11-18 09:56:00

标签: python docker opencv

为opencv执行docker文件时出现此错误:

错误:

from .cv2 import * ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

Dockerfile:

FROM jjanzic/docker-python3-opencv
COPY . /app
WORKDIR /app

RUN pip3 install -r requirements.txt


ENTRYPOINT ["python3"]
CMD ["app.py"]

Requirements.txt

opencv-contrib-python-headless==3.4.3.18
Click==7.0
cloudpickle==0.6.1
cycler==0.10.0
dask==0.20.1
decorator==4.3.0
Flask==1.0.2
imutils==0.5.1
itsdangerous==1.1.0
Jinja2==2.10
kiwisolver==1.0.1
MarkupSafe==1.1.0
networkx==2.2
numpy==1.15.4
Pillow==5.3.0
pyparsing==2.3.0
python-dateutil==2.7.5
PyWavelets==1.0.1
scikit-image==0.14.1
scipy==1.1.0
six==1.11.0
toolz==0.9.0
Werkzeug==0.14.1

请告诉我如何解决?

0 个答案:

没有答案