This application failed to start because it could not find or load the Qt platform plugin "xcb".
程序员文章站
2022-03-31 09:38:20
...
anaconda4.2+python3.5下输入如下代码
import matplotlib.pyplot as plt
import numpy as np
x = np.array([0, 1])
plt.scatter(x, x)
plt.show()
报错:
This application failed to start because it could not find or load the Qt platform plugin “xcb”.
Reinstalling the application may fix this problem.
Aborted
解决方案:
conda remove qt
conda remove pyqt
conda install qt
conda install pyqt
如果提示conda权限不够,执行如下代码
sudo chown -R your_user_name <your path>/anaconda3
例如sudo chown -R sloan /home/sloan/anaconda3
推荐阅读
-
解决:This application failed to start because it could not find or load the Qt platform plugin “xcb“
-
This application failed to start because it could not find or load the Qt platform plugin "dxcb" in
-
This application failed to start because it could not find or load the Qt platform plugin "xcb".
-
This application failed to start because it could not find or load the Qt platform plugin "xcb" in "
-
Qt错误:This application failed to start because it could not find or load the Qt platform plugin cocoa
-
This application failed to start because it could not find or load the Qt platform plugin "xcb".
-
This application failed to start because it could not find or load the Qt platform plugin xcb
-
This application failed to start because it could not find or load the Qt platform plugin “xcb“.
-
This application failed to start because it could not find or load the Qt platform plugin "linuxfb"
-
This application failed to start because it could not find or load the Qt platform plugin "linuxfb"