Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubuntu 20.04 安装opencv 3.4.4.19 失败 #106

Open
ghost opened this issue May 18, 2022 · 5 comments
Open

ubuntu 20.04 安装opencv 3.4.4.19 失败 #106

ghost opened this issue May 18, 2022 · 5 comments

Comments

@ghost
Copy link

ghost commented May 18, 2022

Screenshot_20220518-095508_ConnectBot

@ghost ghost changed the title ubuntu 20.04 编译opencv失败 ubuntu 20.04 安装opencv 3.4.4.19 失败 May 18, 2022
@ghost
Copy link
Author

ghost commented May 18, 2022

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

@ghost
Copy link
Author

ghost commented May 18, 2022

Screenshot_20220518-103048_ConnectBot

@ghost
Copy link
Author

ghost commented May 18, 2022

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
Copy link
Author

ghost commented May 18, 2022

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

@monkey6
Copy link

monkey6 commented Aug 25, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant