我使用库成功安装了 Python 3.8.10,但是当我运行示例 Matplotlib 代码时,我收到此退出代码错误,并且没有输出。我的路径是正确的,我的安装也是正确的。我似乎无法找到此错误的根本原因。我也安装了pip。
import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4], [1, 4, 9, 16])
plt.axis([0, 6, 0, 20])
plt.show()
输出
Process ended with exit code 3.
我尝试重新安装 Python 和 Thonny 。 Thonny 和 wing 是我使用的两个 IDE,因为我的系统是 32 位的。
我也有这个问题。我应该怎么办? 谢谢