【qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “” even though it was found.】対処方法
はじめに
環境
- Windows11
- WSL2のUbuntu
- IPython
状況
import matplotlib.pyplot as plt
plt.plot(1,2)
Installed qt5 event loop hook. 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 platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, webgl, xcb. Aborted
状況補足
- Matplotlibとcv2(OpenCV)を利用
- Matplotlibの後にOpenCVをインストールした
対処方法
原因
- 競合や依存関係がうまく行っていない(多分)
対処コマンド
どちらか一方(Matplotlib or CV2)を利用したい場合
conda uninstall matplotlib
conda uninstall opencv
- 利用しない方をアンインストールする
両方利用したい場合
- MinicondaからAnacondaに切り替える