현상
파이썬에서 matplotlib를 import하다보면 아래와 같은 error 메세지가 발생한다.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
해결
Dependency문제로, 아래의 명령어를 입력해서 package를 설치하면 된다.
sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
출처
'Python' 카테고리의 다른 글
"ImportError: libGL.so.1: cannot open shared object file: No such file or directory" 해결방법 (0) | 2023.10.20 |
---|---|
"glfw error: x11: the display environment variable is missing" 오류 해결법 (0) | 2023.10.20 |
파이참 visual studio 단축키 (키맵) 설정 방법 (0) | 2023.10.10 |
Pycharm indexing 느린 문제 및 무한반복 해결법 (0) | 2023.10.05 |
Pycharm 파일 경로 자동 완성 (File path autocomplete) 방법 (0) | 2023.10.05 |