UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
需要安装GUI库 比如qt5
pip install -i https://pypi.mirrors.ustc.edu.cn/simple/ pyqt5
并且在 python 代码里使用GUI库
import matplotlib
matplotlib.use("qt5Agg")
UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
需要安装GUI库 比如qt5
pip install -i https://pypi.mirrors.ustc.edu.cn/simple/ pyqt5
并且在 python 代码里使用GUI库
import matplotlib
matplotlib.use("qt5Agg")