Execute the following command:
import cv2
File "/appletree/miniconda3/envs/yyp_pytorch/lib/python3.7/site-packages/cv2/__init__.py", line 5, in <module>
from .cv2 import *
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
Reason: libGL.so.1 is missing.
Solution:
execute the following command after pip install opencv-python
pip install opencv-python-headless
Read More:
- How to Solve ModuleNotFoundError: No module named ‘_bz2‘
- [Solved] Python2 Install tensorflow Error: class DescriptorBase(metaclass=DescriptorMetaclass), SyntaxError: invalid syntax
- ImportError: No module named google.protobuf.internal
- [Solved] headless pyrender offscreen render Error: OpenGL.error.GLError: GLError(err = 12296,
- MAC install lightgbm and xgboost Error [How to Solve]
- [Solved] PaddleX ERROR: Unexpected BUS error encountered in DataLoader worker
- Vitis-AI Generate a Quantitative Model: NotImplementedError
- ImportError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.23‘ not found
- 500 (International server error) server error in Flash + heroku
- [Solved] Open3d error: unable to display image using open3d
- [619]libgtk-3.so.0 or libXt.so.6: cannot open shared object file: No such file or directory
- [Solved] OpenCV Error: AttributeError: module ‘cv2‘ has no attribute ‘data‘
- How to Solve Error: Heartbeating to master:7182 failed.
- [Solved] Tensorflow/Keras Error reading weights: ValueError: axes don‘t match array
- [Solved] Jupyter Kernel error: kernel Cannot Connect—-import win32api; ImportError: DLL load failed…
- The solution of no module named ‘jinja2. Asyncsupport’
- Attributeerror encountered when using ceilometer and gnocchi to execute commands related to gnocchi metric list: _Environ instance has no attribute ‘
- [Solved] kubeflow pipeline visualization component Error: WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager…
- [Solved] HTML report error, httprunner 3. X HTML report error, oserror: [winerror 6] handle invalid (resolved)
- Flask Startup Error: s.bind(server_address)PermissionError: [Errno 13] Permission denied