【发布时间】:2019-11-09 19:13:39
【问题描述】:
以下代码给出错误: Matplotlib 给出 This application failed to start because it could not find or load the Qt platform plugin "xcb" in "".
import matplotlib.pyplot as plt
import numpy as np
# Create the vectors X and Y
x = np.array(range(100))
y = x ** 2
# Create the plot
plt.plot(x,y)
# Show the plot
plt.show()
【问题讨论】:
-
您可能缺少某种共享库。你是如何安装 matplotlib 的? QT 安装了吗?
标签: python matplotlib