plt.figure()
报错:no display name and no $DISPLAY environment variable
解决方法:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
参考:https://zhang0peter.blog.csdn.net/article/details/83627705
plt.figure()
报错:no display name and no $DISPLAY environment variable
解决方法:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
参考:https://zhang0peter.blog.csdn.net/article/details/83627705