远程服务器出图报错
这个错是因为远程的服务器没有图形化界面。所以我们需要在代码中加入:
import matplotlib.pyplot as plt plt.switch_backend('agg')