Dev record/Ubuntu

VScode 시각화 툴 안됨 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/eddy/anaconda3/envs/py3.9/lib/python3.9/site-packages/cv2/qt/plugins" even though it was found.This application failed to start because no Qt platform plugi..

Barrer 2023. 1. 4. 12:13
반응형

문제상황

VScode 내의 terminal에서 matplotlib을 사용하려고 하면서 발생한 에러 코드

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/eddy/anaconda3/envs/py3.9/lib/python3.9/site-packages/cv2/qt/plugins" 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.

 

해결 방안

GUI가 없는 서버를 위한 opencv를 설치하면 해결된다.

pip install opencv-python-headless

 

실행 결과

문제 없이 matplotlop을 이용해서 ploting 가능하다.

반응형