The solution of OpenCV library import error in python3
Operating environment:
Operating system: CentOS 7.9
Software environment: Python 3.6
Error problem description:
When using OpenCV library, error occurred when importing Library:
File "<stdin>", line 1, in <module>
File "/home/summer/.local/lib/python3.6/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
resolvent:
Enter the command in the terminal:
sudo yum update
sudo yum install mesa-libGL.x86_64
The update is complete.
Read More:
- Installing opencv Python in docker container
- Anaconda installation opencv Python error solution
- An import error is reported in the python. The solution to setting. Pylintrc is invalid
- Error in installing Matplotlib Library: permissionerror: [errno 13] permission denied: ‘/ usr / local / lib / python3.6’
- In Python, import XXX does not report an error, but in IPython (Jupiter notebook)
- From in Python__ future__ The role of import *
- Opencv problem: opencv error: assertion failed (! Empty()) in detectmultiscale
- Solve the problem of prompt couldn’t find path to unrear library after installing unrear in Python
- Solution to error reporting in opencv4.0 compilation of logo-logo
- Cannot call the same level library solution in pychar
- OpenCV3.1 + Python2.7 error “DLL load failed: The specified module could not be found”
- Error reporting of OpenCV and Darknet under Python 2.7
- pip Import Error:cannot import Name main solution
- The solution of using OpenGL’s Glu Library in qt5.2 under win7
- Python – [encoding] in Python os.system Solution to Chinese garbled code when calling CMD command
- Opencv2.4.9 + ffmpeg1.2.12 installation configuration and problem solution under Ubuntu 14.04
- Configuring glfw library and glad Library in opengl-vs2015
- Error report and solution of import panda in Windows 10
- Opencv perfect configuration strategy 2015 (win7 + opencv 2.4.9 + vs 2013)
- [opencv + openvino] opencv-vino4.5.1 + opencv contrib installation