报错信息:
File "/opt/new/new_project/new_project/__init__.py", line 5, in <module>
from . import tasks
File "/opt/new/new_project/new_project/tasks.py", line 2, in <module>
from pdf2docx import Converter
File "/usr/local/python3/lib/python3.8/site-packages/pdf2docx/__init__.py", line 1, in <module>
from .converter import Converter
File "/usr/local/python3/lib/python3.8/site-packages/pdf2docx/converter.py", line 9, in <module>
from .page.Page import Page
File "/usr/local/python3/lib/python3.8/site-packages/pdf2docx/page/Page.py", line 44, in <module>
from ..common.Collection import BaseCollection
File "/usr/local/python3/lib/python3.8/site-packages/pdf2docx/common/Collection.py", line 9, in <module>
from .algorithm import (solve_rects_intersection, graph_bfs)
File "/usr/local/python3/lib/python3.8/site-packages/pdf2docx/common/algorithm.py", line 3, in <module>
import cv2 as cv
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
解决方案:
yum install mesa-libGL.x86_64