解决方法

添加代码,指定不需要GUI的backend

import matplotlib.pyplot as plt
plt.switch_backend('agg')
此作者没有提供个人介绍。
最后更新于 2017-12-15