1. 下载Python3.8.10,(最新版本一堆坑)
2. 命令终端运行(需要网络)
py -m pip install --upgrade pip
py -m pip install matplotlib
py: 输入下面代码检查是否正常
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots() # Create a figure containing a single axes.
ax.plot([1, 2, 3, 4], [1, 4, 2, 3]); # Plot some data on the axes.
plt.show()