Could not load the Qt platform plugin “xcb” in “” even though it was found
问题 This question is asked several times in Stack Overflow. I tried methods in several discussions but it didn't work. So my OpenCV library which was built with custom Qt doesn't work properly: import cv2 img = cv2.imread("IMAGE_PATH") cv2.imshow("frame", img) qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available