TrWebOCR icon indicating copy to clipboard operation
TrWebOCR copied to clipboard

ubuntu 20.04 安装opencv 3.4.4.19 失败

Open ghost opened this issue 2 years ago • 5 comments

Screenshot_20220518-095508_ConnectBot

ghost avatar May 18 '22 01:05 ghost

安装最新版的opencv和其他依赖后运行该项目报错

ghost avatar May 18 '22 02:05 ghost

Screenshot_20220518-103048_ConnectBot

ghost avatar May 18 '22 02:05 ghost

Traceback (most recent call last): File "backend/main.py", line 55, in app = make_app() File "backend/main.py", line 31, in mak e_app from backend.webInterface import tr_r un File "/root/TrWebOCR/backend/webInterfa ce/tr_run.py", line 7, in import cv2 File "/usr/local/lib/python3.8/dist-pac kages/cv2/init.py", line 8, in from .cv2 import * ImportError: libGL.so.1: cannot open shar ed object file: No such file or directory

ghost avatar May 18 '22 02:05 ghost

os verison ubuntu 20.04 python 3.8 opencv(pip install opencv-python 直接安装)

ghost avatar May 18 '22 02:05 ghost

python版本不对,安装3.7的python版本就可以了

monkey6 avatar Aug 25 '22 14:08 monkey6