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

在容器中无法运行 #25

Closed
tscuite opened this issue Jan 6, 2022 · 1 comment
Closed

在容器中无法运行 #25

tscuite opened this issue Jan 6, 2022 · 1 comment

Comments

@tscuite
Copy link

tscuite commented Jan 6, 2022

Traceback (most recent call last):
File "hello.py", line 8, in
import cv2
File "/usr/local/lib/python3.8/site-packages/cv2/init.py", line 8, in
from .cv2 import *

ImportError: libGL.so.1: cannot open shared object file: No such file or directory
下载过后错误又变为
libGL.so.0

@tscuite
Copy link
Author

tscuite commented Jan 7, 2022

pip uninstall opencv-python
pip3 install opencv-python-headless
执行上面的正常,作者大佬yyds

@tscuite tscuite closed this as completed Jan 7, 2022
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